org.fontbox.ttf

Class CMAPEncodingEntry


public class CMAPEncodingEntry
extends java.lang.Object

An encoding entry for a cmap.
Version:
$Revision: 1.2 $
Author:
Ben Litchfield

Method Summary

int[]
getGlyphIdToCharacterCode()
int
getPlatformEncodingId()
int
getPlatformId()
void
initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
void
initSubtable(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
void
setGlyphIdToCharacterCode(int[] glyphIdToCharacterCodeValue)
void
setPlatformEncodingId(int platformEncodingIdValue)
void
setPlatformId(int platformIdValue)

Method Details

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)
            throws IOException
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.

initSubtable

public void initSubtable(TrueTypeFont ttf,
                         TTFDataStream data)
            throws IOException
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.

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.