CmapLookup
public class SubstitutingCmapLookup extends Object implements CmapLookup
Constructor | Description |
---|---|
SubstitutingCmapLookup(CmapSubtable cmap,
GlyphSubstitutionTable gsub,
List<String> enabledFeatures) |
Modifier and Type | Method | Description |
---|---|---|
List<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.
|
public SubstitutingCmapLookup(CmapSubtable cmap, GlyphSubstitutionTable gsub, List<String> enabledFeatures)
public int getGlyphId(int characterCode)
CmapLookup
getGlyphId
in interface CmapLookup
characterCode
- the given character code to be mappedpublic List<Integer> getCharCodes(int gid)
CmapLookup
getCharCodes
in interface CmapLookup
gid
- glyph idCopyright © 2008–2018. All rights reserved.