org.apache.fontbox.ttf

Class 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
static intENCODING_BIG5
An encoding constant.
static intENCODING_JOHAB
An encoding constant.
static intENCODING_PRC
An encoding constant.
static intENCODING_SHIFT_JIS
An encoding constant.
static intENCODING_SYMBOL
An encoding constant.
static intENCODING_UNICODE
An encoding constant.
static intENCODING_WANSUNG
An encoding constant.
static intPLATFORM_WINDOWS
A constant for the platform.
static StringTAG
A tag used to identify this table.
Method Summary
CMAPEncodingEntry[]getCmaps()
voidinitData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidsetCmaps(CMAPEncodingEntry[] cmapsValue)

Field Detail

ENCODING_BIG5

public static final int ENCODING_BIG5
An encoding constant.

ENCODING_JOHAB

public static final int ENCODING_JOHAB
An encoding constant.

ENCODING_PRC

public static final int ENCODING_PRC
An encoding constant.

ENCODING_SHIFT_JIS

public static final int ENCODING_SHIFT_JIS
An encoding constant.

ENCODING_SYMBOL

public static final int ENCODING_SYMBOL
An encoding constant.

ENCODING_UNICODE

public static final int ENCODING_UNICODE
An encoding constant.

ENCODING_WANSUNG

public static final int ENCODING_WANSUNG
An encoding constant.

PLATFORM_WINDOWS

public static final int PLATFORM_WINDOWS
A constant for the platform.

TAG

public static final String TAG
A tag used to identify this table.

Method Detail

getCmaps

public CMAPEncodingEntry[] getCmaps()

Returns: Returns the cmaps.

initData

public void initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.

Parameters: ttf The font that is being read. data The stream to read the data from.

Throws: IOException If there is an error reading the data.

setCmaps

public void setCmaps(CMAPEncodingEntry[] cmapsValue)

Parameters: cmapsValue The cmaps to set.

Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.