EncodedFont
, FontBoxFont
public class CFFType1Font extends CFFFont implements EncodedFont
charset, charStrings, fontName, globalSubrIndex, topDict
Constructor | Description |
---|---|
CFFType1Font() |
Modifier and Type | Method | 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, toString
public java.awt.geom.GeneralPath getPath(java.lang.String name) throws java.io.IOException
FontBoxFont
getPath
in interface FontBoxFont
java.io.IOException
- if the path could not be readpublic float getWidth(java.lang.String name) throws java.io.IOException
FontBoxFont
getWidth
in interface FontBoxFont
java.io.IOException
- if the path could not be readpublic boolean hasGlyph(java.lang.String name)
FontBoxFont
hasGlyph
in interface FontBoxFont
name
- PostScript glyph namepublic java.util.List<java.lang.Number> getFontMatrix()
CFFFont
getFontMatrix
in interface FontBoxFont
getFontMatrix
in class CFFFont
public 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 CFFFont
gid
- 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
Copyright © 2008–2018. All rights reserved.