Package com.mta.tehreer.sfnt.tables
Class NameTable
java.lang.Object
com.mta.tehreer.sfnt.tables.NameTable
Represents an OpenType `name' table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a single record of OpenType `name' table. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NameTable
Constructs anNameTableobject from the specified typeface.- Parameters:
typeface- The typeface from which theNameTableobject is constructed.- Throws:
NullPointerException- iftypefaceisnull.RuntimeException- iftypefacedoes not contain `name' table.
-
-
Method Details
-
from
Constructs aNameTableobject from the specified typeface.- Parameters:
typeface- The typeface from which theNameTableobject is constructed.- Returns:
- A new
NameTableobject, ornullif `name' table does not exist in the specified typeface. - Throws:
NullPointerException- iftypefaceisnull.
-
recordCount
public int recordCount()Returns the number of name records in this table.- Returns:
- The number of name records in this table.
-
recordAt
Retrieves a record of this table at a given index.- Parameters:
index- The index of the name record.- Returns:
- A record of OpenType `name' table at a given index.
- Throws:
IndexOutOfBoundsException- ifindexis negative, orindexis is greater than or equal torecordCount().
-