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
Modifier and TypeClassDescriptionstatic class
Represents a single record of OpenType `name' table. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
NameTable
Constructs anNameTable
object from the specified typeface.- Parameters:
typeface
- The typeface from which theNameTable
object is constructed.- Throws:
NullPointerException
- iftypeface
isnull
.RuntimeException
- iftypeface
does not contain `name' table.
-
-
Method Details
-
from
Constructs aNameTable
object from the specified typeface.- Parameters:
typeface
- The typeface from which theNameTable
object is constructed.- Returns:
- A new
NameTable
object, ornull
if `name' table does not exist in the specified typeface. - Throws:
NullPointerException
- iftypeface
isnull
.
-
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
- ifindex
is negative, orindex
is is greater than or equal torecordCount()
.
-