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 intformatprivate java.util.List<CFFParser.RangeMapping>rangesCID2GID
-
Constructor Summary
Constructors Modifier Constructor Description protectedFormat2Charset(boolean isCIDFont)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCIDForGID(int gid)Returns the CID for the given GID.intgetGIDForCID(int cid)Returns the GID for a given CID.java.lang.StringtoString()-
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:CFFCharsetReturns the CID for the given GID.- Overrides:
getCIDForGIDin classCFFCharset- Parameters:
gid- GID- Returns:
- CID
-
getGIDForCID
public int getGIDForCID(int cid)
Description copied from class:CFFCharsetReturns the GID for a given CID. Returns 0 if the CID is missing.- Overrides:
getGIDForCIDin classCFFCharset- Parameters:
cid- CID- Returns:
- GID
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-