Package org.apache.fontbox.ttf
Class NamingTable
- java.lang.Object
-
- org.apache.fontbox.ttf.TTFTable
-
- org.apache.fontbox.ttf.NamingTable
-
public class NamingTable extends TTFTable
A table in a true type font.- Author:
- Ben Litchfield (ben@benlitchfield.com)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG
A tag that identifies this table type.-
Fields inherited from class org.apache.fontbox.ttf.TTFTable
initialized
-
-
Constructor Summary
Constructors Constructor Description NamingTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFontFamily()
Returns the font family name.java.lang.String
getFontSubFamily()
Returns the font sub family name.java.util.List<NameRecord>
getNameRecords()
This will get the name records for this naming table.java.lang.String
getPSName()
Returns the postscript name.void
initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.-
Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
A tag that identifies this table type.- See Also:
- Constant Field Values
-
-
Method Detail
-
initData
public void initData(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
This will read the required data from the stream.
-
getNameRecords
public java.util.List<NameRecord> getNameRecords()
This will get the name records for this naming table.- Returns:
- A list of NameRecord objects.
-
getFontFamily
public java.lang.String getFontFamily()
Returns the font family name.- Returns:
- the font family name
-
getFontSubFamily
public java.lang.String getFontSubFamily()
Returns the font sub family name.- Returns:
- the font sub family name
-
getPSName
public java.lang.String getPSName()
Returns the postscript name.- Returns:
- the postscript name
-
-