| java.lang.Object com.sun.pdfview.font.PDFFont com.sun.pdfview.font.OutlineFont com.sun.pdfview.font.NativeFont
NativeFont | public class NativeFont extends OutlineFont (Code) | | a font object derived from a true type font.
author: Mike Wessler |
Field Summary | |
final protected static char[] | controlChars | final protected static short[] | mapIDs |
controlChars | final protected static char[] controlChars(Code) | | Control characters to filter out of the underlying font
|
mapIDs | final protected static short[] mapIDs(Code) | | the ids of our favorite CMaps
|
NativeFont | public NativeFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException(Code) | | create a new NativeFont object based on a description of the
font from the PDF file. If the description happens to contain
an in-line true-type font file (under key "FontFile2"), use the
true type font. Otherwise, parse the description for key information
and use that to generate an appropriate font.
|
getOutline | protected GeneralPath getOutline(String name, float width)(Code) | | Get a glyph outline by name
Parameters: name - the name of the desired glyph the glyph outline, or null if unavailable |
getOutline | protected GeneralPath getOutline(char src, float width)(Code) | | Get a glyph outline by character code
Note this method must always return an outline
Parameters: src - the character code of the desired glyph the glyph outline |
setFont | protected void setFont(Font f)(Code) | | Set the font
Parameters: f - the font to use |
|
|