public class CmapSubtable extends Object implements org.apache.fontbox.ttf.CmapLookup
| 构造器和说明 |
|---|
CmapSubtable() |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
CmapSubtable |
initData(TTFDataStream data)
读取流解析 cmap子表
This will read the required data from the stream.
|
void |
setPlatformEncodingId(int platformEncodingIdValue) |
void |
setPlatformId(int platformIdValue) |
String |
toString() |
public CmapSubtable initData(TTFDataStream data) throws IOException
This will read the required data from the stream.
data - The stream to read the data from.IOException - If there is an error reading the data.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 在接口中 org.apache.fontbox.ttf.CmapLookupcharacterCode - the given character code to be mappedpublic List<Integer> getCharCodes(int gid)
getCharCodes 在接口中 org.apache.fontbox.ttf.CmapLookupgid - glyph idCopyright © 2024. All rights reserved.