public class CFFType1Font extends CFFFont implements EncodedFont
charStrings, globalSubrIndex, topDict| Constructor and Description |
|---|
CFFType1Font() |
| Modifier and Type | Method and Description |
|---|---|
CFFEncoding |
getEncoding()
Returns the CFFEncoding of the font.
|
GeneralPath |
getPath(String name)
Returns the path for the character with the given name.
|
Map<String,Object> |
getPrivateDict()
Returns the private dictionary.
|
Type1CharString |
getType1CharString(String name)
Returns the Type 1 charstring for the given PostScript glyph name.
|
Type2CharString |
getType2CharString(int gid)
Returns the Type 1 charstring for the given GID.
|
float |
getWidth(String name)
Returns the advance width for the character with the given name.
|
boolean |
hasGlyph(String name)
Returns true if the font contains the given glyph.
|
int |
nameToGID(String name)
Returns the GID for the given PostScript glyph name.
|
addValueToTopDict, getCharset, getCharStringBytes, getData, getFontBBox, getFontMatrix, getGlobalSubrIndex, getName, getNumCharStrings, getTopDict, toStringpublic GeneralPath getPath(String name) throws IOException
FontBoxFontgetPath in interface FontBoxFontname - PostScript glyph nameIOException - if the path could not be readpublic float getWidth(String name) throws IOException
FontBoxFontgetWidth in interface FontBoxFontname - PostScript glyph nameIOException - if the path could not be readpublic boolean hasGlyph(String name)
FontBoxFonthasGlyph in interface FontBoxFontname - PostScript glyph namepublic Type1CharString getType1CharString(String name) throws IOException
name - PostScript glyph nameIOException - if the charstring could not be readpublic int nameToGID(String name)
name - a PostScript glyph name.public Type2CharString getType2CharString(int gid) throws IOException
getType2CharString in class CFFFontgid - GIDIOException - if the charstring could not be readpublic Map<String,Object> getPrivateDict()
public CFFEncoding getEncoding()
getEncoding in interface EncodedFontCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.