public class SubstitutingCmapLookup extends java.lang.Object implements CmapLookup
Modifier and Type | Field and Description |
---|---|
private CmapSubtable |
cmap |
private java.util.List<java.lang.String> |
enabledFeatures |
private GlyphSubstitutionTable |
gsub |
Constructor and Description |
---|
SubstitutingCmapLookup(CmapSubtable cmap,
GlyphSubstitutionTable gsub,
java.util.List<java.lang.String> enabledFeatures) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getCharCodes(int gid)
Returns all possible character codes for the given gid, or null if there is none.
|
int |
getGlyphId(int characterCode)
Returns the GlyphId linked with the given character code.
|
private final CmapSubtable cmap
private final GlyphSubstitutionTable gsub
private final java.util.List<java.lang.String> enabledFeatures
public SubstitutingCmapLookup(CmapSubtable cmap, GlyphSubstitutionTable gsub, java.util.List<java.lang.String> enabledFeatures)
public int getGlyphId(int characterCode)
CmapLookup
getGlyphId
in interface CmapLookup
characterCode
- the given character code to be mappedpublic java.util.List<java.lang.Integer> getCharCodes(int gid)
CmapLookup
getCharCodes
in interface CmapLookup
gid
- glyph id