com.sun.pdfview.font
public class NativeFont extends OutlineFont
Field Summary | |
---|---|
protected static char[] | controlChars Control characters to filter out of the underlying font |
protected static short[] | mapIDs the ids of our favorite CMaps |
Constructor Summary | |
---|---|
NativeFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
create a new NativeFont object based on a description of the
font from the PDF file. |
Method Summary | |
---|---|
protected GeneralPath | getOutline(String name, float width)
Get a glyph outline by name
|
protected GeneralPath | getOutline(char src, float width)
Get a glyph outline by character code
Note this method must always return an outline
|
protected void | setFont(Font f)
Set the font
|
protected void | setFont(byte[] fontdata)
Set the font
|
Parameters: name the name of the desired glyph
Returns: the glyph outline, or null if unavailable
Parameters: src the character code of the desired glyph
Returns: the glyph outline
Parameters: f the font to use
Parameters: fontdata the font data as a byte array