Class PlatformIdentifier
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.truetype.mappings.PlatformIdentifier
-
- Direct Known Subclasses:
CustomPlatformIdentifier,IsoPlatformIdentifier,MacintoshPlatformIdentifier,MicrosoftPlatformIdentifier,UnicodePlatformIdentifier
public abstract class PlatformIdentifier extends java.lang.ObjectCreation-Date: 06.11.2005, 21:33:16- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static PlatformIdentifierISOstatic PlatformIdentifierMACINTOSHstatic PlatformIdentifierMICROSOFTstatic PlatformIdentifierUNICODE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetEncoding(int encodingId, int language)Quoted from the OpenTypeSpecs:static PlatformIdentifiergetIdentifier(int param)intgetType()java.lang.StringtoString()
-
-
-
Field Detail
-
UNICODE
public static final PlatformIdentifier UNICODE
-
MACINTOSH
public static final PlatformIdentifier MACINTOSH
-
ISO
public static final PlatformIdentifier ISO
-
MICROSOFT
public static final PlatformIdentifier MICROSOFT
-
-
Method Detail
-
getType
public int getType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getIdentifier
public static PlatformIdentifier getIdentifier(int param)
-
getEncoding
public abstract java.lang.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:
-
-