Top Description Fields Constructors Methods
jogamp.graph.font.typecast.ot.table

public Class NameTable

extends Object
implements Table
Class Inheritance
All Implemented Interfaces
jogamp.graph.font.typecast.ot.table.Table
Imports
java.io.DataInput, .DataInputStream, .ByteArrayInputStream, .IOException

The naming table allows multilingual strings to be associated with the OpenType font file. These strings can represent copyright notices, font names, family names, style names, and so on.
Author
David Schweinsberg
Version
$Id: NameTable.java,v 1.2 2004-12-09 23:47:23 davidsch Exp $

Field Summary

Modifier and TypeField and Description
private final DirectoryEntry
private final short
private final short
private final NameRecord[]
private final short

Constructor Summary

AccessConstructor and Description
protected
NameTable(final DirectoryEntry de, final DataInput di)

Method Summary

Modifier and TypeMethod and Description
public DirectoryEntry

Returns:

A directory entry
getDirectoryEntry
()

Implements jogamp.graph.font.typecast.ot.table.Table.getDirectoryEntry.

Get a directory entry for this table.
public StringBuilder
getNamedRecordString(final StringBuilder sb, final short nameId)

public short
public NameRecord
getRecord(final int i)

public StringBuilder
getRecordsRecordString(final StringBuilder sb, final int i)

public int
getType()

Implements jogamp.graph.font.typecast.ot.table.Table.getType.

Get the table type, as a table directory value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_deback to summary
private final DirectoryEntry _de
_formatSelectorback to summary
private final short _formatSelector
_numberOfNameRecordsback to summary
private final short _numberOfNameRecords
_recordsback to summary
private final NameRecord[] _records
_stringStorageOffsetback to summary
private final short _stringStorageOffset

Constructor Detail

NameTableback to summary
protected NameTable(final DirectoryEntry de, final DataInput di) throws IOException

Method Detail

getDirectoryEntryback to summary
public DirectoryEntry getDirectoryEntry()

Implements jogamp.graph.font.typecast.ot.table.Table.getDirectoryEntry.

Get a directory entry for this table. This uniquely identifies the table in collections where there may be more than one instance of a particular table.

Returns:DirectoryEntry

A directory entry

Annotations
@Override
getNamedRecordStringback to summary
public StringBuilder getNamedRecordString(final StringBuilder sb, final short nameId)
getNumberOfNameRecordsback to summary
public short getNumberOfNameRecords()
getRecordback to summary
public NameRecord getRecord(final int i)
getRecordsRecordStringback to summary
public StringBuilder getRecordsRecordString(final StringBuilder sb, final int i)
getTypeback to summary
public int getType()

Implements jogamp.graph.font.typecast.ot.table.Table.getType.

Doc from jogamp.graph.font.typecast.ot.table.Table.getType.

Get the table type, as a table directory value.

Returns:int

The table type

Annotations
@Override