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
private static class CFFParser.Format1Charset extends EmbeddedCharset
Inner class representing a Format1 charset.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CFFParser.RangeMapping>rangesCID2GID
-
Constructor Summary
Constructors Modifier Constructor Description privateFormat1Charset(boolean isCIDFont)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRangeMapping(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 Detail
-
rangesCID2GID
private final java.util.List<CFFParser.RangeMapping> rangesCID2GID
-
-
Method Detail
-
addRangeMapping
public void addRangeMapping(CFFParser.RangeMapping rangeMapping)
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
-
-