FontBoxFontCFFCIDFont, CFFType1Fontpublic abstract class CFFFont extends Object implements FontBoxFont
| Modifier and Type | Field | Description |
|---|---|---|
protected CFFCharset |
charset |
|
protected byte[][] |
charStrings |
|
protected String |
fontName |
|
protected byte[][] |
globalSubrIndex |
|
protected Map<String,Object> |
topDict |
| Constructor | Description |
|---|---|
CFFFont() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addValueToTopDict(String name,
Object value) |
Adds the given key/value pair to the top dictionary.
|
CFFCharset |
getCharset() |
Returns the CFFCharset of the font.
|
List<byte[]> |
getCharStringBytes() |
Returns the character strings dictionary.
|
byte[] |
getData() |
Returns the CFF data.
|
BoundingBox |
getFontBBox() |
Returns the FontBBox.
|
abstract List<Number> |
getFontMatrix() |
Returns the FontMatrix.
|
List<byte[]> |
getGlobalSubrIndex() |
Returns the list containing the global subroutine .
|
String |
getName() |
The name of the font.
|
int |
getNumCharStrings() |
Returns the number of charstrings in the font.
|
Map<String,Object> |
getTopDict() |
Returns the top dictionary.
|
abstract Type2CharString |
getType2CharString(int cidOrGid) |
Returns the Type 2 charstring for the given CID.
|
String |
toString() |
getPath, getWidth, hasGlyphprotected String fontName
protected CFFCharset charset
protected byte[][] charStrings
protected byte[][] globalSubrIndex
public String getName()
getName in interface FontBoxFontpublic void addValueToTopDict(String name, Object value)
name - the given keyvalue - the given valuepublic Map<String,Object> getTopDict()
public abstract List<Number> getFontMatrix()
getFontMatrix in interface FontBoxFontpublic BoundingBox getFontBBox()
getFontBBox in interface FontBoxFontpublic CFFCharset getCharset()
public final List<byte[]> getCharStringBytes()
public byte[] getData()
throws IOException
IOExceptionpublic int getNumCharStrings()
public List<byte[]> getGlobalSubrIndex()
public abstract Type2CharString getType2CharString(int cidOrGid) throws IOException
cidOrGid - CID for CIFFont, or GID for Type 1 fontIOException - if the charstring could not be readCopyright © 2008–2018. All rights reserved.