Package org.apache.fontbox.cff.charset
Class CFFCharset
java.lang.Object
org.apache.fontbox.cff.charset.CFFCharset
- Direct Known Subclasses:
CFFExpertCharset,CFFExpertSubsetCharset,CFFISOAdobeCharset
This is the superclass for all CFFFont charsets.
- Version:
- $Revision$
- Author:
- Villu Ruusmann
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents a single SID/name mapping of the charset. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry(CFFCharset.Entry entry) Add a single entry.A list of all entries within this charset.getName(int sid) Returns the name corresponding to the given SID.intReturns the SID corresponding to the given name.booleanDetermines if the charset is font specific or not.voidAdds a new SID/name combination to the charset.
-
Constructor Details
-
CFFCharset
public CFFCharset()
-
-
Method Details
-
isFontSpecific
public boolean isFontSpecific()Determines if the charset is font specific or not.- Returns:
- if the charset is font specific
-
getSID
Returns the SID corresponding to the given name.- Parameters:
name- the given SID- Returns:
- the corresponding SID
-
getName
Returns the name corresponding to the given SID.- Parameters:
sid- the given SID- Returns:
- the corresponding name
-
register
Adds a new SID/name combination to the charset.- Parameters:
sid- the given SIDname- the given name
-
addEntry
Add a single entry.- Parameters:
entry- the entry to be added
-
getEntries
A list of all entries within this charset.- Returns:
- a list of all entries
-