public class TTFFont extends OutlineFont
| Constructor and Description |
|---|
TTFFont(String baseFont,
PDFObject fontObj,
PDFFontDescriptor descriptor)
create a new TrueTypeFont 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 the outline of a character given the character code
|
protected GeneralPath |
getOutline(int glyphId,
float width)
Get the outline of a character given the glyph id
|
protected GeneralPath |
getOutline(String name,
float width)
Get the outline of a character given the character name
|
protected GeneralPath |
getOutlineFromCMaps(char val,
float width)
lookup the outline using the CMAPs, as specified in 32000-1:2008,
9.6.6.4, when an Encoding is specified.
|
protected GeneralPath |
renderCompoundGlyph(GlyfTable glyf,
GlyfCompound g)
Render a compound glyf
|
protected GeneralPath |
renderSimpleGlyph(GlyfSimple g)
Render a simple glyf
|
getCharCount, getDefaultWidth, getFirstChar, getGlyph, getLastChar, getWidthequals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toStringpublic TTFFont(String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException
IOExceptionprotected GeneralPath getOutline(char src, float width)
getOutline in class OutlineFontsrc - the character code of the desired glyphprotected GeneralPath getOutlineFromCMaps(char val, float width)
val - width - protected GeneralPath getOutline(String name, float width)
getOutline in class OutlineFontname - the name of the desired glyphprotected GeneralPath getOutline(int glyphId, float width)
protected GeneralPath renderSimpleGlyph(GlyfSimple g)
protected GeneralPath renderCompoundGlyph(GlyfTable glyf, GlyfCompound g)
Copyright © 2024. All rights reserved.