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

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.truetype.mappings.PlatformIdentifier
      extended by org.pentaho.reporting.libraries.fonts.truetype.mappings.CustomPlatformIdentifier

public class CustomPlatformIdentifier
extends PlatformIdentifier

Creation-Date: 07.11.2005, 15:42:07

Author:
Thomas Morgner

Field Summary
 
Fields inherited from class org.pentaho.reporting.libraries.fonts.truetype.mappings.PlatformIdentifier
ISO, MACINTOSH, MICROSOFT, UNICODE
 
Constructor Summary
CustomPlatformIdentifier(int type)
           
 
Method Summary
 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.

 
Methods inherited from class org.pentaho.reporting.libraries.fonts.truetype.mappings.PlatformIdentifier
getIdentifier, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomPlatformIdentifier

public CustomPlatformIdentifier(int type)
Method Detail

getEncoding

public java.lang.String getEncoding(int encodingId,
                                    int language)
Description copied from class: PlatformIdentifier
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.

Specified by:
getEncoding in class PlatformIdentifier
Returns: