public abstract class OutlineFont extends PDFFont
Constructor and Description |
---|
OutlineFont(java.lang.String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor)
Creates a new instance of OutlineFont
|
Modifier and Type | Method and Description |
---|---|
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,
java.lang.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 java.awt.geom.GeneralPath |
getOutline(char src,
float width)
Get a glyph outline by character code
Note this method must always return an outline
|
protected abstract java.awt.geom.GeneralPath |
getOutline(java.lang.String name,
float width)
Get a glyph outline by name
|
float |
getWidth(char code,
java.lang.String name)
Get the width of a given character
|
equals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toString
public OutlineFont(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws java.io.IOException
java.io.IOException
public int getFirstChar()
public int getLastChar()
public int getDefaultWidth()
public int getCharCount()
public float getWidth(char code, java.lang.String name)
protected PDFGlyph getGlyph(char src, java.lang.String name)
protected abstract java.awt.geom.GeneralPath getOutline(java.lang.String name, float width)
name
- the name of the desired glyphprotected abstract java.awt.geom.GeneralPath getOutline(char src, float width)
src
- the character code of the desired glyph