public abstract class CFFFont extends Object implements FontBoxFont
| Modifier and Type | Field and Description |
|---|---|
protected CFFCharset |
charset |
protected List<byte[]> |
charStrings |
protected String |
fontName |
protected IndexData |
globalSubrIndex |
protected Map<String,Object> |
topDict |
| Constructor and Description |
|---|
CFFFont() |
| Modifier and Type | Method and 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.
|
byte[] |
getData()
Returns the the original data.
|
BoundingBox |
getFontBBox()
Returns the FontBBox.
|
abstract List<Number> |
getFontMatrix()
Returns the FontMatrix.
|
IndexData |
getGlobalSubrIndex()
Returns the global subroutine index data.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPath, getWidth, hasGlyphprotected String fontName
protected CFFCharset charset
protected final List<byte[]> charStrings
protected IndexData 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 byte[] getData()
public int getNumCharStrings()
public IndexData 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–2015 The Apache Software Foundation. All rights reserved.