public class NativeFont extends OutlineFont
| Modifier and Type | Field and Description |
|---|---|
protected static char[] |
controlChars
Control characters to filter out of the underlying font
|
protected static short[] |
mapIDs
the ids of our favorite CMaps
|
| Constructor and Description |
|---|
NativeFont(String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor)
create a new NativeFont object based on a description of the
font from the PDF file.
|
| Modifier and Type | Method and Description |
|---|---|
protected GeneralPath |
getOutline(char src,
float width)
Get a glyph outline by character code
Note this method must always return an outline
|
protected GeneralPath |
getOutline(String name,
float width)
Get a glyph outline by name
|
protected void |
setFont(byte[] fontdata)
Set the font
|
protected void |
setFont(Font f)
Set the font
|
getCharCount, getDefaultWidth, getFirstChar, getGlyph, getLastChar, getWidthequals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toStringprotected static final char[] controlChars
protected static final short[] mapIDs
public NativeFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException
IOExceptionprotected GeneralPath getOutline(String name, float width)
getOutline in class OutlineFontname - the name of the desired glyphprotected GeneralPath getOutline(char src, float width)
getOutline in class OutlineFontsrc - the character code of the desired glyphprotected void setFont(Font f)
f - the font to useprotected void setFont(byte[] fontdata)
throws FontFormatException,
IOException
fontdata - the font data as a byte arrayFontFormatExceptionIOExceptionCopyright © 2024. All rights reserved.