public class CFFType1Font extends CFFFont implements EncodedFont
charset, charStrings, fontName, globalSubrIndex, topDict| Constructor and Description |
|---|
CFFType1Font() |
| Modifier and Type | Method and Description |
|---|---|
CFFEncoding |
getEncoding()
Returns the CFFEncoding of the font.
|
java.util.List<java.lang.Number> |
getFontMatrix()
Returns the FontMatrix.
|
java.awt.geom.GeneralPath |
getPath(java.lang.String name)
Returns the path for the character with the given name.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPrivateDict()
Returns the private dictionary.
|
Type1CharString |
getType1CharString(java.lang.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(java.lang.String name)
Returns the advance width for the character with the given name.
|
boolean |
hasGlyph(java.lang.String name)
Returns true if the font contains the given glyph.
|
int |
nameToGID(java.lang.String name)
Returns the GID for the given PostScript glyph name.
|
addValueToTopDict, getCharset, getCharStringBytes, getData, getFontBBox, getGlobalSubrIndex, getName, getNumCharStrings, getTopDict, toStringpublic java.awt.geom.GeneralPath getPath(java.lang.String name)
throws java.io.IOException
FontBoxFontgetPath in interface FontBoxFontjava.io.IOException - if the path could not be readpublic float getWidth(java.lang.String name)
throws java.io.IOException
FontBoxFontgetWidth in interface FontBoxFontjava.io.IOException - if the path could not be readpublic boolean hasGlyph(java.lang.String name)
FontBoxFonthasGlyph in interface FontBoxFontname - PostScript glyph namepublic java.util.List<java.lang.Number> getFontMatrix()
CFFFontgetFontMatrix in interface FontBoxFontgetFontMatrix in class CFFFontpublic Type1CharString getType1CharString(java.lang.String name) throws java.io.IOException
name - PostScript glyph namejava.io.IOException - if the charstring could not be readpublic int nameToGID(java.lang.String name)
name - a PostScript glyph name.public Type2CharString getType2CharString(int gid) throws java.io.IOException
getType2CharString in class CFFFontgid - GIDjava.io.IOException - if the charstring could not be readpublic java.util.Map<java.lang.String,java.lang.Object> getPrivateDict()
public CFFEncoding getEncoding()
getEncoding in interface EncodedFont