public class NamingTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static String |
TAG
A tag that identifies this table type.
|
font, initialized
Modifier and Type | Method and Description |
---|---|
String |
getFontFamily()
Returns the font family name, in English.
|
String |
getFontSubFamily()
Returns the font sub family name, in English.
|
String |
getName(int nameId,
int platformId,
int encodingId,
int languageId)
Returns a name from the table, or null it it does not exist.
|
List<NameRecord> |
getNameRecords()
This will get the name records for this naming table.
|
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, getTag
public static final String TAG
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.public 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 List<NameRecord> getNameRecords()
public String getFontFamily()
public String getFontSubFamily()
public String getPostScriptName()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.