public abstract class CFFFont extends Object implements FontBoxFont
Modifier and Type | Field and Description |
---|---|
protected CFFCharset |
charset |
protected byte[][] |
charStrings |
protected String |
fontName |
protected byte[][] |
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.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPath, getWidth, hasGlyph
protected String fontName
protected CFFCharset charset
protected byte[][] charStrings
protected byte[][] globalSubrIndex
public String getName()
getName
in interface FontBoxFont
public 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 FontBoxFont
public BoundingBox getFontBBox()
getFontBBox
in interface FontBoxFont
public CFFCharset getCharset()
public final List<byte[]> getCharStringBytes()
public byte[] getData() throws IOException
IOException
public 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 © 2002–2018 The Apache Software Foundation. All rights reserved.