org.pentaho.reporting.libraries.fonts.truetype.mappings

Class PlatformIdentifier

public abstract class PlatformIdentifier extends Object

Creation-Date: 06.11.2005, 21:33:16

Author: Thomas Morgner

Field Summary
static PlatformIdentifierISO
static PlatformIdentifierMACINTOSH
static PlatformIdentifierMICROSOFT
static PlatformIdentifierUNICODE
Method Summary
abstract StringgetEncoding(int encodingId, int language)
Quoted from the OpenTypeSpecs:

Note that OS/2 and Windows both require that all name strings be defined in Unicode.

static PlatformIdentifiergetIdentifier(int param)
intgetType()
StringtoString()

Field Detail

ISO

public static final PlatformIdentifier ISO

MACINTOSH

public static final PlatformIdentifier MACINTOSH

MICROSOFT

public static final PlatformIdentifier MICROSOFT

UNICODE

public static final PlatformIdentifier UNICODE

Method Detail

getEncoding

public abstract String getEncoding(int encodingId, int language)
Quoted from the OpenTypeSpecs:

Note that OS/2 and Windows both require that all name strings be defined in Unicode. Thus all 'name' table strings for platform ID = 3 (Microsoft) will require two bytes per character. Macintosh fonts require single byte strings.

Parameters: encodingId language

Returns:

getIdentifier

public static PlatformIdentifier getIdentifier(int param)

getType

public int getType()

toString

public String toString()