org.apache.fontbox.ttf

Class CMAPEncodingEntry

public class CMAPEncodingEntry extends Object

An encoding entry for a cmap.

Version: $Revision: 1.2 $

Author: Ben Litchfield

Method Summary
int[]getGlyphIdToCharacterCode()
intgetPlatformEncodingId()
intgetPlatformId()
voidinitData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidinitSubtable(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidsetGlyphIdToCharacterCode(int[] glyphIdToCharacterCodeValue)
voidsetPlatformEncodingId(int platformEncodingIdValue)
voidsetPlatformId(int platformIdValue)

Method Detail

getGlyphIdToCharacterCode

public int[] getGlyphIdToCharacterCode()

Returns: Returns the glyphIdToCharacterCode.

getPlatformEncodingId

public int getPlatformEncodingId()

Returns: Returns the platformEncodingId.

getPlatformId

public int getPlatformId()

Returns: Returns the platformId.

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.

initSubtable

public void initSubtable(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.

setGlyphIdToCharacterCode

public void setGlyphIdToCharacterCode(int[] glyphIdToCharacterCodeValue)

Parameters: glyphIdToCharacterCodeValue The glyphIdToCharacterCode to set.

setPlatformEncodingId

public void setPlatformEncodingId(int platformEncodingIdValue)

Parameters: platformEncodingIdValue The platformEncodingId to set.

setPlatformId

public void setPlatformId(int platformIdValue)

Parameters: platformIdValue The platformId to set.

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