org.pentaho.reporting.libraries.fonts.truetype
Class NameTable

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.truetype.NameTable
All Implemented Interfaces:
FontTable

public class NameTable
extends Object
implements FontTable

Creation-Date: 06.11.2005, 20:24:42

Author:
Thomas Morgner

Nested Class Summary
static class NameTable.NameRecord
           
 
Field Summary
static int NAME_COMPATIBLE_FULL
           
static int NAME_COPYRIGHT
           
static int NAME_DESCRIPTION
           
static int NAME_DESIGNER
           
static int NAME_DESIGNER_URL
           
static int NAME_FAMILY
           
static int NAME_FULLNAME
           
static int NAME_LICENCE_DESCRIPTION
           
static int NAME_LICENCE_URL
           
static int NAME_MANUFACTURER
           
static int NAME_POSTSCRIPT
           
static int NAME_PREFERRED_FAMILY
           
static int NAME_PREFERRED_SUBFAMILY
           
static int NAME_RESERVED
           
static int NAME_SAMPLE_TEXT
           
static int NAME_SUBFAMILY
           
static int NAME_TRADEMARK
           
static int NAME_UNIQUE_SUBFAMILY
           
static int NAME_VENDOR_URL
           
static int NAME_VERSION
           
static long TABLE_ID
           
 
Constructor Summary
NameTable(byte[] buffer)
           
 
Method Summary
 String[] getAllNames(int type)
           
 int getFormat()
           
 long getName()
           
 String getName(int type, LanguageCode language)
           
 String getName(int type, PlatformIdentifier platformId, int platformEncoding, int rawLanguage)
           
 NameTable.NameRecord getNameRecord(int pos)
           
 NameTable.NameRecord[] getNameRecords()
           
 String getPrimaryName(int type)
           
 int getRecordCount()
           
 int getStringOffset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_COPYRIGHT

public static final int NAME_COPYRIGHT
See Also:
Constant Field Values

NAME_FAMILY

public static final int NAME_FAMILY
See Also:
Constant Field Values

NAME_SUBFAMILY

public static final int NAME_SUBFAMILY
See Also:
Constant Field Values

NAME_UNIQUE_SUBFAMILY

public static final int NAME_UNIQUE_SUBFAMILY
See Also:
Constant Field Values

NAME_FULLNAME

public static final int NAME_FULLNAME
See Also:
Constant Field Values

NAME_VERSION

public static final int NAME_VERSION
See Also:
Constant Field Values

NAME_POSTSCRIPT

public static final int NAME_POSTSCRIPT
See Also:
Constant Field Values

NAME_TRADEMARK

public static final int NAME_TRADEMARK
See Also:
Constant Field Values

NAME_MANUFACTURER

public static final int NAME_MANUFACTURER
See Also:
Constant Field Values

NAME_DESIGNER

public static final int NAME_DESIGNER
See Also:
Constant Field Values

NAME_DESCRIPTION

public static final int NAME_DESCRIPTION
See Also:
Constant Field Values

NAME_VENDOR_URL

public static final int NAME_VENDOR_URL
See Also:
Constant Field Values

NAME_DESIGNER_URL

public static final int NAME_DESIGNER_URL
See Also:
Constant Field Values

NAME_LICENCE_DESCRIPTION

public static final int NAME_LICENCE_DESCRIPTION
See Also:
Constant Field Values

NAME_LICENCE_URL

public static final int NAME_LICENCE_URL
See Also:
Constant Field Values

NAME_RESERVED

public static final int NAME_RESERVED
See Also:
Constant Field Values

NAME_PREFERRED_FAMILY

public static final int NAME_PREFERRED_FAMILY
See Also:
Constant Field Values

NAME_PREFERRED_SUBFAMILY

public static final int NAME_PREFERRED_SUBFAMILY
See Also:
Constant Field Values

NAME_COMPATIBLE_FULL

public static final int NAME_COMPATIBLE_FULL
See Also:
Constant Field Values

NAME_SAMPLE_TEXT

public static final int NAME_SAMPLE_TEXT
See Also:
Constant Field Values

TABLE_ID

public static final long TABLE_ID
See Also:
Constant Field Values
Constructor Detail

NameTable

public NameTable(byte[] buffer)
          throws EncodingException
Throws:
EncodingException
Method Detail

getName

public String getName(int type,
                      PlatformIdentifier platformId,
                      int platformEncoding,
                      int rawLanguage)

getName

public String getName(int type,
                      LanguageCode language)

getFormat

public int getFormat()

getRecordCount

public int getRecordCount()

getStringOffset

public int getStringOffset()

getNameRecords

public NameTable.NameRecord[] getNameRecords()

getNameRecord

public NameTable.NameRecord getNameRecord(int pos)

getPrimaryName

public String getPrimaryName(int type)

getAllNames

public String[] getAllNames(int type)

getName

public long getName()
Specified by:
getName in interface FontTable