public abstract class CFFFont extends Object implements FontBoxFont
| Modifier and Type | Field and Description |
|---|---|
protected byte[][] |
charStrings |
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.
|
List<Number> |
getFontMatrix()
Returns the FontMatrix.
|
List<byte[]> |
getGlobalSubrIndex()
Returns the list containing the global subroutines.
|
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 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 List<Number> getFontMatrix()
getFontMatrix in interface FontBoxFontpublic BoundingBox getFontBBox() throws IOException
getFontBBox in interface FontBoxFontIOException - if there are less than 4 numberspublic CFFCharset getCharset()
public final List<byte[]> getCharStringBytes()
public byte[] getData()
throws IOException
IOException - if the data could not be readpublic 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–2025 The Apache Software Foundation. All rights reserved.