Package org.apache.fontbox.cff
Class CFFParser.Format1Charset
java.lang.Object
org.apache.fontbox.cff.EmbeddedCharset
org.apache.fontbox.cff.CFFParser.Format1Charset
- All Implemented Interfaces:
CFFCharset
- Enclosing class:
CFFParser
Inner class representing a Format1 charset.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRangeMapping(CFFParser.RangeMapping rangeMapping) Add the given range mapping.intgetCIDForGID(int gid) Returns the CID for the given GID.intgetGIDForCID(int cid) Returns the GID for a given CID.Methods inherited from class org.apache.fontbox.cff.EmbeddedCharset
addCID, addSID, getGIDForSID, getNameForGID, getSID, getSIDForGID, isCIDFont
-
Field Details
-
rangesCID2GID
-
-
Constructor Details
-
Format1Charset
private Format1Charset(boolean isCIDFont)
-
-
Method Details
-
addRangeMapping
Add the given range mapping.- Parameters:
rangeMapping- the range mapping to be added.
-
getCIDForGID
public int getCIDForGID(int gid) Description copied from interface:CFFCharsetReturns the CID for the given GID.- Specified by:
getCIDForGIDin interfaceCFFCharset- Overrides:
getCIDForGIDin classEmbeddedCharset- Parameters:
gid- GID- Returns:
- CID
-
getGIDForCID
public int getGIDForCID(int cid) Description copied from interface:CFFCharsetReturns the GID for a given CID. Returns 0 if the CID is missing.- Specified by:
getGIDForCIDin interfaceCFFCharset- Overrides:
getGIDForCIDin classEmbeddedCharset- Parameters:
cid- CID- Returns:
- GID
-