public class CMAP extends Table
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
CMAPentrySelector
CMap format used -1 shows not set
|
protected int[] |
CMAPformats
CMap format used -1 shows not set
|
protected int[] |
CMAPlang
CMap format used -1 shows not set
|
protected int[] |
CMAPlength
CMap format used -1 shows not set
|
protected int[] |
CMAPrangeShift
CMap format used -1 shows not set
|
protected int[] |
CMAPreserved
CMap format used -1 shows not set
|
protected int[] |
CMAPsearchRange
CMap format used -1 shows not set
|
protected int[] |
CMAPsegCount
CMap format used -1 shows not set
|
protected int[] |
CMAPsubtables |
protected int[] |
endCode |
protected int[] |
glyphIdArray |
protected int[][] |
glyphIndexToChar |
protected int |
id |
protected int[] |
idDelta |
protected int[] |
idRangeOffset |
protected int |
numberSubtables |
protected int[] |
platformID
shows which encoding used
|
protected int[] |
platformSpecificID |
protected int[] |
startCode |
| Constructor and Description |
|---|
CMAP() |
CMAP(FontFile2 currentFontFile,
int startPointer) |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,Integer> |
buildCharStringTable()
turn type 0 table into a list of glyph
|
int |
convertIndexToCharacterCode(String glyph,
int index)
convert raw glyph number to Character code
|
int |
getGlyphToIndex(int rawInt) |
void |
setEncodingToUse(boolean hasEncoding,
int fontEncoding,
boolean isCID)
work out correct CMAP table to use.
|
protected int[][] glyphIndexToChar
protected int[] endCode
protected int[] startCode
protected int[] idDelta
protected int[] idRangeOffset
protected int[] glyphIdArray
protected int[] CMAPformats
protected int[] CMAPlength
protected int[] CMAPlang
protected int[] CMAPsegCount
protected int[] CMAPsearchRange
protected int[] CMAPentrySelector
protected int[] CMAPrangeShift
protected int[] CMAPreserved
protected int[] platformID
protected int id
protected int numberSubtables
protected int[] CMAPsubtables
protected int[] platformSpecificID
public CMAP(FontFile2 currentFontFile, int startPointer)
public CMAP()
public int convertIndexToCharacterCode(String glyph, int index)
public void setEncodingToUse(boolean hasEncoding,
int fontEncoding,
boolean isCID)
public Map<Integer,Integer> buildCharStringTable()
public int getGlyphToIndex(int rawInt)
Copyright © 2017. All rights reserved.