|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fontbox.cff.CFFFont
public class CFFFont
This class represents a CFF/Type2 Font.
| Nested Class Summary | |
|---|---|
class |
CFFFont.Mapping
This class is used for the font mapping. |
| Constructor Summary | |
|---|---|
CFFFont()
|
|
| Method Summary | |
|---|---|
void |
addValueToPrivateDict(java.lang.String name,
java.lang.Object value)
Adds the given key/value pair to the private dictionary. |
void |
addValueToTopDict(java.lang.String name,
java.lang.Object value)
Adds the given key/value pair to the top dictionary. |
CharStringConverter |
createConverter()
Creates a CharStringConverter for this font. |
CharStringRenderer |
createRenderer()
Creates a CharStringRenderer for this font. |
CFFCharset |
getCharset()
Returns the CFFCharset of the font. |
java.util.Map<java.lang.String,byte[]> |
getCharStringsDict()
Returns the character strings dictionary. |
CFFEncoding |
getEncoding()
Returns the CFFEncoding of the font. |
java.util.Collection<CFFFont.Mapping> |
getMappings()
Get the mapping (code/SID/charname/bytes) for this font. |
java.lang.String |
getName()
The name of the font. |
java.util.Map<java.lang.String,java.lang.Object> |
getPrivateDict()
Returns the private dictionary. |
java.lang.Object |
getProperty(java.lang.String name)
Returns the value for the given name from the dictionary. |
java.util.Map<java.lang.String,java.lang.Object> |
getTopDict()
Returns the top dictionary. |
void |
setCharset(CFFCharset charset)
Sets the CFFCharset of the font. |
void |
setEncoding(CFFEncoding encoding)
Sets the CFFEncoding of the font. |
void |
setName(java.lang.String name)
Sets the name of the font. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CFFFont()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the fontpublic java.lang.Object getProperty(java.lang.String name)
name - the name of the value
public 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 void addValueToPrivateDict(java.lang.String name,
java.lang.Object value)
name - the given keyvalue - the given valuepublic java.util.Map<java.lang.String,java.lang.Object> getPrivateDict()
public java.util.Collection<CFFFont.Mapping> getMappings()
public CFFEncoding getEncoding()
public void setEncoding(CFFEncoding encoding)
encoding - the given CFFEncodingpublic CFFCharset getCharset()
public void setCharset(CFFCharset charset)
charset - the given CFFCharsetpublic java.util.Map<java.lang.String,byte[]> getCharStringsDict()
public CharStringConverter createConverter()
public CharStringRenderer createRenderer()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||