Package org.apache.fontbox.ttf
Class NamingTable
java.lang.Object
org.apache.fontbox.ttf.TTFTable
org.apache.fontbox.ttf.NamingTable
A table in a true type font.
- Author:
- Ben Litchfield (ben@benlitchfield.com)
-
Field Summary
FieldsFields inherited from class org.apache.fontbox.ttf.TTFTable
initialized
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the font family name.Returns the font sub family name.This will get the name records for this naming table.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 Details
-
TAG
A tag that identifies this table type.- See Also:
-
-
Constructor Details
-
NamingTable
public NamingTable()
-
-
Method Details
-
initData
This will read the required data from the stream.- Overrides:
initData
in classTTFTable
- Parameters:
ttf
- The font that is being read.data
- The stream to read the data from.- Throws:
IOException
- If there is an error reading the data.
-
getNameRecords
This will get the name records for this naming table.- Returns:
- A list of NameRecord objects.
-
getFontFamily
Returns the font family name.- Returns:
- the font family name
-
getFontSubFamily
Returns the font sub family name.- Returns:
- the font sub family name
-
getPSName
Returns the postscript name.- Returns:
- the postscript name
-