public class CmapTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
private CmapSubtable[] |
cmaps |
static int |
ENCODING_MAC_ROMAN |
static int |
ENCODING_UNICODE_1_0 |
static int |
ENCODING_UNICODE_1_1 |
static int |
ENCODING_UNICODE_2_0_BMP |
static int |
ENCODING_UNICODE_2_0_FULL |
static int |
ENCODING_WIN_BIG5 |
static int |
ENCODING_WIN_JOHAB |
static int |
ENCODING_WIN_PRC |
static int |
ENCODING_WIN_SHIFT_JIS |
static int |
ENCODING_WIN_SYMBOL |
static int |
ENCODING_WIN_UNICODE_BMP |
static int |
ENCODING_WIN_UNICODE_FULL |
static int |
ENCODING_WIN_WANSUNG |
static int |
PLATFORM_MACINTOSH |
static int |
PLATFORM_UNICODE |
static int |
PLATFORM_WINDOWS |
static java.lang.String |
TAG
A tag used to identify this table.
|
font, initialized
Constructor and Description |
---|
CmapTable(TrueTypeFont font) |
Modifier and Type | Method and Description |
---|---|
CmapSubtable[] |
getCmaps() |
CmapSubtable |
getSubtable(int platformId,
int platformEncodingId)
Returns the subtable, if any, for the given platform and encoding.
|
(package private) void |
read(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream.
|
void |
setCmaps(CmapSubtable[] cmapsValue) |
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
public static final java.lang.String TAG
public static final int PLATFORM_UNICODE
public static final int PLATFORM_MACINTOSH
public static final int PLATFORM_WINDOWS
public static final int ENCODING_MAC_ROMAN
public static final int ENCODING_WIN_SYMBOL
public static final int ENCODING_WIN_UNICODE_BMP
public static final int ENCODING_WIN_SHIFT_JIS
public static final int ENCODING_WIN_BIG5
public static final int ENCODING_WIN_PRC
public static final int ENCODING_WIN_WANSUNG
public static final int ENCODING_WIN_JOHAB
public static final int ENCODING_WIN_UNICODE_FULL
public static final int ENCODING_UNICODE_1_0
public static final int ENCODING_UNICODE_1_1
public static final int ENCODING_UNICODE_2_0_BMP
public static final int ENCODING_UNICODE_2_0_FULL
private CmapSubtable[] cmaps
CmapTable(TrueTypeFont font)
void read(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
public CmapSubtable[] getCmaps()
public void setCmaps(CmapSubtable[] cmapsValue)
cmapsValue
- The cmaps to set.public CmapSubtable getSubtable(int platformId, int platformEncodingId)