public class NamingTable extends TTFTable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG
A tag that identifies this table type.
|
font, initialized| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFontFamily()
Returns the font family name, in English.
|
java.lang.String |
getFontSubFamily()
Returns the font sub family name, in English.
|
java.lang.String |
getName(int nameId,
int platformId,
int encodingId,
int languageId)
Returns a name from the table, or null it it does not exist.
|
java.util.List<NameRecord> |
getNameRecords()
This will get the name records for this naming table.
|
java.lang.String |
getPostScriptName()
Returns the PostScript name.
|
void |
read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
getCheckSum, getInitialized, getLength, getOffset, getTagpublic static final java.lang.String TAG
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws java.io.IOException
ttf - The font that is being read.data - The stream to read the data from.java.io.IOException - If there is an error reading the data.public java.lang.String getName(int nameId,
int platformId,
int encodingId,
int languageId)
nameId - Name ID from NameRecord constants.platformId - Platform ID from NameRecord constants.encodingId - Platform Encoding ID from NameRecord constants.languageId - Language ID from NameRecord constants.public java.util.List<NameRecord> getNameRecords()
public java.lang.String getFontFamily()
public java.lang.String getFontSubFamily()
public java.lang.String getPostScriptName()