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