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
private static class CFFParser.Format2Charset extends CFFParser.EmbeddedCharset
Inner class representing a Format2 charset.
-
-
Field Summary
Fields Modifier and Type Field Description private int
format
private java.util.List<CFFParser.RangeMapping>
rangesCID2GID
-
Constructor Summary
Constructors Modifier Constructor Description protected
Format2Charset(boolean isCIDFont)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCIDForGID(int gid)
Returns the CID for the given GID.int
getGIDForCID(int cid)
Returns the GID for a given CID.java.lang.String
toString()
-
Methods inherited from class org.apache.fontbox.cff.CFFCharset
addCID, addSID, getGIDForSID, getNameForGID, getSID, getSIDForGID, isCIDFont
-
-
-
-
Field Detail
-
format
private int format
-
rangesCID2GID
private java.util.List<CFFParser.RangeMapping> rangesCID2GID
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-