Package org.apache.fontbox.ttf
Class CMAPTable
- java.lang.Object
-
- org.apache.fontbox.ttf.TTFTable
-
- org.apache.fontbox.ttf.CMAPTable
-
public class CMAPTable extends TTFTable
A table in a true type font.- Version:
- $Revision: 1.1 $
- Author:
- Ben Litchfield (ben@benlitchfield.com)
-
-
Field Summary
Fields Modifier and Type Field 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 java.lang.String
TAG
A tag used to identify this table.-
Fields inherited from class org.apache.fontbox.ttf.TTFTable
initialized
-
-
Constructor Summary
Constructors Constructor Description CMAPTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMAPEncodingEntry[]
getCmaps()
void
initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.void
setCmaps(CMAPEncodingEntry[] cmapsValue)
-
Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
A tag used to identify this table.- See Also:
- Constant Field Values
-
PLATFORM_MISC
public static final int PLATFORM_MISC
A constant for the platform.- See Also:
- Constant Field Values
-
PLATFORM_MACINTOSH
public static final int PLATFORM_MACINTOSH
A constant for the platform.- See Also:
- Constant Field Values
-
PLATFORM_WINDOWS
public static final int PLATFORM_WINDOWS
A constant for the platform.- See Also:
- Constant Field Values
-
ENCODING_SYMBOL
public static final int ENCODING_SYMBOL
An encoding constant.- See Also:
- Constant Field Values
-
ENCODING_UNICODE
public static final int ENCODING_UNICODE
An encoding constant.- See Also:
- Constant Field Values
-
ENCODING_SHIFT_JIS
public static final int ENCODING_SHIFT_JIS
An encoding constant.- See Also:
- Constant Field Values
-
ENCODING_BIG5
public static final int ENCODING_BIG5
An encoding constant.- See Also:
- Constant Field Values
-
ENCODING_PRC
public static final int ENCODING_PRC
An encoding constant.- See Also:
- Constant Field Values
-
ENCODING_WANSUNG
public static final int ENCODING_WANSUNG
An encoding constant.- See Also:
- Constant Field Values
-
ENCODING_JOHAB
public static final int ENCODING_JOHAB
An encoding constant.- See Also:
- Constant Field Values
-
-
Method Detail
-
initData
public void initData(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
This will read the required data from the stream.
-
getCmaps
public CMAPEncodingEntry[] getCmaps()
- Returns:
- Returns the cmaps.
-
setCmaps
public void setCmaps(CMAPEncodingEntry[] cmapsValue)
- Parameters:
cmapsValue
- The cmaps to set.
-
-