|
||||||||||
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. |
IndexData |
getGlobalSubrIndex()
Returns the global subroutine index data. |
IndexData |
getLocalSubrIndex()
Returns the local subroutine index data. |
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. |
protected int |
getNotDefWidth(int defaultWidth,
int nominalWidth)
|
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. |
int |
getWidth(int SID)
Return the Width value of the given Glyph identifier |
void |
setCharset(CFFCharset charset)
Sets the CFFCharset of the font. |
void |
setEncoding(CFFEncoding encoding)
Sets the CFFEncoding of the font. |
void |
setGlobalSubrIndex(IndexData globalSubrIndex)
Sets the global subroutine index data. |
void |
setLocalSubrIndex(IndexData localSubrIndex)
Sets the local subroutine index data. |
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 int getWidth(int SID) throws java.io.IOException
SID
-
java.io.IOException
protected int getNotDefWidth(int defaultWidth, int nominalWidth) throws java.io.IOException
java.io.IOException
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
public void setGlobalSubrIndex(IndexData globalSubrIndex)
globalSubrIndex
- the IndexData object containing the global subroutinespublic IndexData getGlobalSubrIndex()
public IndexData getLocalSubrIndex()
public void setLocalSubrIndex(IndexData localSubrIndex)
localSubrIndex
- the IndexData object containing the local subroutines
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |