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.
|
List<Number> |
getFontMatrix()
Returns the FontMatrix.
|
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, getGlobalSubrIndex, getName, getNumCharStrings, getTopDict, toString
public GeneralPath getPath(String name) throws IOException
FontBoxFont
getPath
in interface FontBoxFont
IOException
- if the path could not be readpublic float getWidth(String name) throws IOException
FontBoxFont
getWidth
in interface FontBoxFont
IOException
- if the path could not be readpublic boolean hasGlyph(String name)
FontBoxFont
hasGlyph
in interface FontBoxFont
name
- PostScript glyph namepublic List<Number> getFontMatrix()
CFFFont
getFontMatrix
in interface FontBoxFont
getFontMatrix
in class CFFFont
public 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 CFFFont
gid
- GIDIOException
- if the charstring could not be readpublic Map<String,Object> getPrivateDict()
public CFFEncoding getEncoding()
getEncoding
in interface EncodedFont
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.