com.sun.pdfview.font
public abstract class OutlineFont extends PDFFont
Constructor Summary | |
---|---|
OutlineFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) Creates a new instance of OutlineFont |
Method Summary | |
---|---|
int | getCharCount() Get the number of characters |
int | getDefaultWidth() Get the default width in text space |
int | getFirstChar() Get the first character code |
protected PDFGlyph | getGlyph(char src, String name)
Get the glyph for a given character code and name
The preferred method of getting the glyph should be by name. |
int | getLastChar() Get the last character code |
protected abstract GeneralPath | getOutline(String name, float width)
Get a glyph outline by name
|
protected abstract GeneralPath | getOutline(char src, float width)
Get a glyph outline by character code
Note this method must always return an outline
|
float | getWidth(char code, String name) Get the width of a given character |
Parameters: src the character code of this glyph name the name of this glyph or null if unknown
Returns: a glyph for this character
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