| Modifier and Type | Class and Description |
|---|---|
| private static class | CmapSubtable.
Class used to manage CMap - Format 2. |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private int[] | |
| private final Map | |
| private static final long | |
| private static final Log | |
| private int | |
| private int | |
| private long | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private int | |
| public List | Returns: a list with all character codes the given gid maps toglyph id gid)Implements org. Returns all possible character codes for the given gid, or null if there is none. |
| public int | Returns: glyphId the corresponding glyph id for the given character codethe given character code to be mapped characterCode)Implements org. Returns the GlyphId linked with the given character code. |
| public int | |
| public int | |
| pack-priv void | initData(TTFDataStream
The stream to read the data from. data)This will read the required data from the stream. |
| pack-priv void | initSubtable(CmapTable
the CMAP this encoding belongs to. cmap, int number of glyphs. numGlyphs, TTFDataStream The stream to read the data from. data)This will read the required data from the stream. |
| private int[] | newGlyphIdToCharacterCode(int size)
Workaround for the fact that glyphIdToCharacterCode doesn't distinguish between missing character codes and code 0. |
| pack-priv void | processSubtype0(TTFDataStream
the data stream of the to be parsed ttf font data)Initialize the CMapEntry when it is a subtype 0. |
| pack-priv void | processSubtype10(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 10 subtable. |
| pack-priv void | processSubtype12(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 12 subtable. |
| pack-priv void | processSubtype13(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 13 subtable. |
| pack-priv void | processSubtype14(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 14 subtable. |
| pack-priv void | processSubtype2(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Read a format 2 subtable. |
| pack-priv void | processSubtype4(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 4 subtable. |
| pack-priv void | processSubtype6(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 6 subtable. |
| pack-priv void | processSubtype8(TTFDataStream
the data stream of the to be parsed ttf font data, int number of glyphs to be read numGlyphs)Reads a format 8 subtable. |
| public void | |
| public void | |
| public String |
| characterCodeToGlyphId | back to summary |
|---|---|
| private Map<Integer, Integer> characterCodeToGlyphId | |
| glyphIdToCharacterCode | back to summary |
|---|---|
| private int[] glyphIdToCharacterCode | |
| glyphIdToCharacterCodeMultiple | back to summary |
|---|---|
| private final Map<Integer, List<Integer>> glyphIdToCharacterCodeMultiple | |
| LEAD_OFFSET | back to summary |
|---|---|
| private static final long LEAD_OFFSET | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| platformEncodingId | back to summary |
|---|---|
| private int platformEncodingId | |
| platformId | back to summary |
|---|---|
| private int platformId | |
| subTableOffset | back to summary |
|---|---|
| private long subTableOffset | |
| SURROGATE_OFFSET | back to summary |
|---|---|
| private static final long SURROGATE_OFFSET | |
| CmapSubtable | back to summary |
|---|---|
| public CmapSubtable() | |
| buildGlyphIdToCharacterCodeLookup | back to summary |
|---|---|
| private void buildGlyphIdToCharacterCodeLookup(int maxGlyphId) | |
| getCharCode | back to summary |
|---|---|
| private int getCharCode(int gid) | |
| getCharCodes | back to summary |
|---|---|
| public List Implements org. Returns all possible character codes for the given gid, or null if there is none. | |
| getGlyphId | back to summary |
|---|---|
| public int getGlyphId(int characterCode) Implements org. Returns the GlyphId linked with the given character code.
| |
| getPlatformEncodingId | back to summary |
|---|---|
public int getPlatformEncodingId()
| |
| getPlatformId | back to summary |
|---|---|
public int getPlatformId()
| |
| initData | back to summary |
|---|---|
| pack-priv void initData(TTFDataStream data) throws IOException This will read the required data from the stream.
| |
| initSubtable | back to summary |
|---|---|
| pack-priv void initSubtable(CmapTable cmap, int numGlyphs, TTFDataStream data) throws IOException This will read the required data from the stream.
| |
| newGlyphIdToCharacterCode | back to summary |
|---|---|
| private int[] newGlyphIdToCharacterCode(int size) Workaround for the fact that glyphIdToCharacterCode doesn't distinguish between missing character codes and code 0. | |
| processSubtype0 | back to summary |
|---|---|
| pack-priv void processSubtype0(TTFDataStream data) throws IOException Initialize the CMapEntry when it is a subtype 0.
| |
| processSubtype10 | back to summary |
|---|---|
| pack-priv void processSubtype10(TTFDataStream data, int numGlyphs) throws IOException Reads a format 10 subtable.
| |
| processSubtype12 | back to summary |
|---|---|
| pack-priv void processSubtype12(TTFDataStream data, int numGlyphs) throws IOException Reads a format 12 subtable.
| |
| processSubtype13 | back to summary |
|---|---|
| pack-priv void processSubtype13(TTFDataStream data, int numGlyphs) throws IOException Reads a format 13 subtable.
| |
| processSubtype14 | back to summary |
|---|---|
| pack-priv void processSubtype14(TTFDataStream data, int numGlyphs) throws IOException Reads a format 14 subtable.
| |
| processSubtype2 | back to summary |
|---|---|
| pack-priv void processSubtype2(TTFDataStream data, int numGlyphs) throws IOException Read a format 2 subtable.
| |
| processSubtype4 | back to summary |
|---|---|
| pack-priv void processSubtype4(TTFDataStream data, int numGlyphs) throws IOException Reads a format 4 subtable.
| |
| processSubtype6 | back to summary |
|---|---|
| pack-priv void processSubtype6(TTFDataStream data, int numGlyphs) throws IOException Reads a format 6 subtable.
| |
| processSubtype8 | back to summary |
|---|---|
| pack-priv void processSubtype8(TTFDataStream data, int numGlyphs) throws IOException Reads a format 8 subtable.
| |
| setPlatformEncodingId | back to summary |
|---|---|
public void setPlatformEncodingId(int platformEncodingIdValue)
| |
| setPlatformId | back to summary |
|---|---|
public void setPlatformId(int platformIdValue)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final short | idDelta
used to compute the GlyphIndex : P = glyphIndexArray.SubArray[pos] GlyphIndex = P + idDelta % 65536. |
| private final int | idRangeOffset
Number of bytes to skip to reach the firstCode in the glyphIndexArray. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| private short | |
| private int |
| entryCount | back to summary |
|---|---|
| private final int entryCount | |
| firstCode | back to summary |
|---|---|
| private final int firstCode | |
| idDelta | back to summary |
|---|---|
| private final short idDelta used to compute the GlyphIndex : P = glyphIndexArray.SubArray[pos] GlyphIndex = P + idDelta % 65536. | |
| idRangeOffset | back to summary |
|---|---|
| private final int idRangeOffset Number of bytes to skip to reach the firstCode in the glyphIndexArray. | |
| SubHeader | back to summary |
|---|---|
| private SubHeader(int firstCodeValue, int entryCountValue, short idDeltaValue, int idRangeOffsetValue) | |
| getEntryCount | back to summary |
|---|---|
private int getEntryCount()
| |
| getFirstCode | back to summary |
|---|---|
private int getFirstCode()
| |
| getIdDelta | back to summary |
|---|---|
private short getIdDelta()
| |
| getIdRangeOffset | back to summary |
|---|---|
private int getIdRangeOffset()
| |