public class CmapSubtable extends Object implements CmapLookup
Constructor and Description |
---|
CmapSubtable() |
Modifier and Type | Method and Description |
---|---|
Integer |
getCharacterCode(int gid)
Deprecated.
the mapping may be ambiguous, see
getCharCodes(int) . The first mapped value is returned by
default. |
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.
|
int |
getPlatformEncodingId() |
int |
getPlatformId() |
void |
setPlatformEncodingId(int platformEncodingIdValue) |
void |
setPlatformId(int platformIdValue) |
String |
toString() |
public int getPlatformEncodingId()
public void setPlatformEncodingId(int platformEncodingIdValue)
platformEncodingIdValue
- The platformEncodingId to set.public int getPlatformId()
public void setPlatformId(int platformIdValue)
platformIdValue
- The platformId to set.public int getGlyphId(int characterCode)
getGlyphId
in interface CmapLookup
characterCode
- the given character code to be mapped@Deprecated public Integer getCharacterCode(int gid)
getCharCodes(int)
. The first mapped value is returned by
default.gid
- glyph idpublic List<Integer> getCharCodes(int gid)
getCharCodes
in interface CmapLookup
gid
- glyph idCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.