public class CMAPTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static int |
ENCODING_BIG5
An encoding constant.
|
static int |
ENCODING_JOHAB
An encoding constant.
|
static int |
ENCODING_PRC
An encoding constant.
|
static int |
ENCODING_SHIFT_JIS
An encoding constant.
|
static int |
ENCODING_SYMBOL
An encoding constant.
|
static int |
ENCODING_UNICODE
An encoding constant.
|
static int |
ENCODING_WANSUNG
An encoding constant.
|
static int |
PLATFORM_MACINTOSH
A constant for the platform.
|
static int |
PLATFORM_MISC
A constant for the platform.
|
static int |
PLATFORM_WINDOWS
A constant for the platform.
|
static String |
TAG
A tag used to identify this table.
|
initialized
Constructor and Description |
---|
CMAPTable() |
Modifier and Type | Method and Description |
---|---|
CMAPEncodingEntry[] |
getCmaps() |
void |
initData(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream.
|
void |
setCmaps(CMAPEncodingEntry[] cmapsValue) |
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
public static final String TAG
public static final int PLATFORM_MISC
public static final int PLATFORM_MACINTOSH
public static final int PLATFORM_WINDOWS
public static final int ENCODING_SYMBOL
public static final int ENCODING_UNICODE
public static final int ENCODING_SHIFT_JIS
public static final int ENCODING_BIG5
public static final int ENCODING_PRC
public static final int ENCODING_WANSUNG
public static final int ENCODING_JOHAB
public void initData(TrueTypeFont ttf, TTFDataStream data) throws IOException
initData
in class TTFTable
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.public CMAPEncodingEntry[] getCmaps()
public void setCmaps(CMAPEncodingEntry[] cmapsValue)
cmapsValue
- The cmaps to set.Copyright © 2008–2018. All rights reserved.