Package org.apache.fontbox.cff
Class CFFParser.Format2Charset
java.lang.Object
org.apache.fontbox.cff.CFFCharset
org.apache.fontbox.cff.CFFParser.EmbeddedCharset
org.apache.fontbox.cff.CFFParser.Format2Charset
- Enclosing class:
- CFFParser
Inner class representing a Format2 charset.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCIDForGID
(int gid) Returns the CID for the given GID.int
getGIDForCID
(int cid) Returns the GID for a given CID.toString()
Methods inherited from class org.apache.fontbox.cff.CFFCharset
addCID, addSID, getGIDForSID, getNameForGID, getSID, getSIDForGID, isCIDFont
-
Field Details
-
format
private int format -
rangesCID2GID
-
-
Constructor Details
-
Format2Charset
protected Format2Charset(boolean isCIDFont)
-
-
Method Details
-
getCIDForGID
public int getCIDForGID(int gid) Description copied from class:CFFCharset
Returns the CID for the given GID.- Overrides:
getCIDForGID
in classCFFCharset
- Parameters:
gid
- GID- Returns:
- CID
-
getGIDForCID
public int getGIDForCID(int cid) Description copied from class:CFFCharset
Returns the GID for a given CID. Returns 0 if the CID is missing.- Overrides:
getGIDForCID
in classCFFCharset
- Parameters:
cid
- CID- Returns:
- GID
-
toString
-