|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.AbstractXtfTable
org.extex.font.format.xtf.tables.TtfTableNAME
public class TtfTableNAME
The name table(tag name: 'name') allows you to include human-readable names for features and settings, copyright notices, font names, style names, and other information related to your font.
| Type | Name | Description |
| UInt16 | format | Format selector. Set to 0. |
| UInt16 | count | The number of nameRecords in this name table. |
| UInt16 | stringOffset | Offset in bytes to the beginning of the name character strings. |
| NameRecord | nameRecord[count] | The name records array. |
| variable | name | character strings The character strings of the names. Note that these are not necessarily ASCII! |
| Nested Class Summary | |
|---|---|
class |
TtfTableNAME.NameRecord
NameRecord. |
| Field Summary | |
|---|---|
static short |
APPLE_UNICODE
platform apple unicode. |
static short |
COPYRIGHTNOTICE
ID: COPYRIGHTNOTICE. |
static short |
FONTFAMILYNAME
ID: FONTFAMILYNAME. |
static short |
FONTSUBFAMILYNAME
ID: FONTSUBFAMILYNAME. |
static short |
FULLFONTNAME
ID: FULLFONTNAME. |
static java.lang.String[] |
IDNAME
ID - name. |
static short |
ISO
platform iso. |
static short |
MACINTOSH
platform macintosh. |
static short |
MICROSOFT
platform microsoft. |
static java.lang.String[] |
PLATFORMNAME
platform names. |
static short |
POSTSCRIPTNAME
ID: POSTSCRIPTNAME. |
static short |
TRADEMARK
ID: TRADEMARK. |
static short |
UNIQUEFONTIDENTIFIER
ID: UNIQUEFONTIDENTIFIER. |
static short |
VERSIONSTRING
ID: VERSIONSTRING. |
| Constructor Summary | |
|---|---|
TtfTableNAME(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
Create a new object. |
|
| Method Summary | |
|---|---|
boolean |
existsPlatfrom(int platfromid)
Check, if a record for the platform exists. |
short |
getCount()
Returns the count. |
short |
getFormat()
Returns the format. |
static java.lang.String |
getIdName(int id)
Returns the name for a id. |
TtfTableNAME.NameRecord[] |
getNameRecords()
Returns the name records. |
TtfTableNAME.NameRecord[] |
getNameRecords(int platfromid)
Returns the name records for a platform id. |
int[] |
getPlatformIDs()
Returns the platform ids. |
static java.lang.String |
getPlatformName(int id)
Returns the platform name for a id. |
java.lang.String |
getRecord(short nameId)
Returns the record. |
java.lang.String |
getRecordString(int platfromid,
int id)
Returns the name records for a platform id. |
java.lang.String |
getShortcut()
Returns the table shortcut. |
short |
getStringOffset()
Returns the stringOffset. |
int |
getType()
Get the table type, as a table directory value. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable |
|---|
getGlyphName, getInitOrder, getTableMap, init, writeStartElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.extex.font.format.xtf.tables.XtfTable |
|---|
getInitOrder, getTableMap, init |
| Field Detail |
|---|
public static final short APPLE_UNICODE
public static final short COPYRIGHTNOTICE
public static final short FONTFAMILYNAME
public static final short FONTSUBFAMILYNAME
public static final short FULLFONTNAME
public static final java.lang.String[] IDNAME
public static final short ISO
public static final short MACINTOSH
public static final short MICROSOFT
public static final java.lang.String[] PLATFORMNAME
public static final short POSTSCRIPTNAME
public static final short TRADEMARK
public static final short UNIQUEFONTIDENTIFIER
public static final short VERSIONSTRING
| Constructor Detail |
|---|
public TtfTableNAME(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
throws java.io.IOException
tablemap - the tablemapde - directory entryrar - input
java.io.IOException - if an IO-error occurs| Method Detail |
|---|
public static java.lang.String getIdName(int id)
id - The name id.
public static java.lang.String getPlatformName(int id)
id - The platform id.
public boolean existsPlatfrom(int platfromid)
platfromid - The platform id.
true, if a record for the platform
exists.public short getCount()
public short getFormat()
public TtfTableNAME.NameRecord[] getNameRecords()
public TtfTableNAME.NameRecord[] getNameRecords(int platfromid)
platfromid - The platform id.
public int[] getPlatformIDs()
public java.lang.String getRecord(short nameId)
nameId - name id
public java.lang.String getRecordString(int platfromid,
int id)
platfromid - The platform id.id - TODO mgn
public java.lang.String getShortcut()
getShortcut in interface XtfTableXtfTable.getShortcut()public short getStringOffset()
public int getType()
getType in interface XtfTable
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writeXML in interface XMLWriterConvertiblewriter - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(
org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||