Package org.apache.fontbox.ttf
Class KerningTable
java.lang.Object
org.apache.fontbox.ttf.TTFTable
org.apache.fontbox.ttf.KerningTable
A 'kern' table in a true type font.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.logging.Log
private KerningSubtable[]
static final String
Tag to identify this table.Fields inherited from class org.apache.fontbox.ttf.TTFTable
font, initialized
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain first subtable that supports non-cross-stream horizontal kerning.getHorizontalKerningSubtable
(boolean cross) Obtain first subtable that supports horizontal kerning with specified cross stream.(package private) void
read
(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
-
LOG
private static final org.apache.commons.logging.Log LOG -
TAG
Tag to identify this table.- See Also:
-
subtables
-
-
Constructor Details
-
KerningTable
KerningTable(TrueTypeFont font)
-
-
Method Details
-
read
This will read the required data from the stream.- Overrides:
read
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.
-
getHorizontalKerningSubtable
Obtain first subtable that supports non-cross-stream horizontal kerning.- Returns:
- first matching subtable or null if none found
-
getHorizontalKerningSubtable
Obtain first subtable that supports horizontal kerning with specified cross stream.- Parameters:
cross
- true if requesting cross stream horizontal kerning- Returns:
- first matching subtable or null if none found
-