| java.lang.Object com.sun.pdfview.font.PDFFont com.sun.pdfview.font.OutlineFont
All known Subclasses: com.sun.pdfview.font.TTFFont, com.sun.pdfview.font.Type1Font, com.sun.pdfview.font.Type1CFont, com.sun.pdfview.font.NativeFont,
OutlineFont | abstract public class OutlineFont extends PDFFont (Code) | | Supports width operations for Type1, Type1C, TrueType and Type3 fonts
|
getCharCount | public int getCharCount()(Code) | | Get the number of characters
|
getDefaultWidth | public int getDefaultWidth()(Code) | | Get the default width in text space
|
getFirstChar | public int getFirstChar()(Code) | | Get the first character code
|
getGlyph | protected PDFGlyph getGlyph(char src, String name)(Code) | | Get the glyph for a given character code and name
The preferred method of getting the glyph should be by name. If the
name is null or not valid, then the character code should be used.
If the both the code and the name are invalid, the undefined glyph
should be returned.
Note this method must *always* return a glyph.
Parameters: src - the character code of this glyph Parameters: name - the name of this glyph or null if unknown a glyph for this character |
getLastChar | public int getLastChar()(Code) | | Get the last character code
|
getOutline | abstract 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 | abstract 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 |
getWidth | public float getWidth(char code, String name)(Code) | | Get the width of a given character
|
|
|