public class CIDFontType2 extends TTFFont
| Constructor and Description |
|---|
CIDFontType2(String baseName,
PDFObject fontObj,
PDFFontDescriptor descriptor)
create a new CIDFontType2 object based on the name of a built-in font
and the font descriptor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultWidth()
Get the default width in text space
|
int |
getDefaultWidthVertical()
Get the default vertical width in text space
|
protected GeneralPath |
getOutline(char src,
float width)
Get the outline of a character given the character code.
|
float |
getWidth(char code,
String name)
Get the width of a given character
|
float |
getWidthVertical(char code,
String name)
Get the vertical width of a given character
|
getOutline, getOutline, getOutlineFromCMaps, renderCompoundGlyph, renderSimpleGlyphgetCharCount, getFirstChar, getGlyph, getLastCharequals, getBaseFont, getCachedGlyph, getDescriptor, getEncoding, getFont, getGlyphs, getSubtype, getUnicodeMap, hashCode, setBaseFont, setDescriptor, setEncoding, setSubtype, setUnicodeMap, toStringpublic CIDFontType2(String baseName, PDFObject fontObj, PDFFontDescriptor descriptor) throws IOException
baseName - the name of the font, from the PDF filefontObj - a dictionary that contains the DW (defaultWidth) and
W (width) parametersdescriptor - a descriptor for the fontIOExceptionpublic int getDefaultWidth()
getDefaultWidth in class OutlineFontpublic float getWidth(char code,
String name)
getWidth in class OutlineFontpublic int getDefaultWidthVertical()
public float getWidthVertical(char code,
String name)
protected GeneralPath getOutline(char src, float width)
getOutline in class TTFFontsrc - the character code of the desired glyphCopyright © 2024. All rights reserved.