Top Description Fields Constructors Methods
org.apache.fontbox.ttf

public Class KerningTable

extends TTFTable
Class Inheritance
Imports
java.io.IOException, org.apache.commons.logging.Log, .LogFactory

A 'kern' table in a true type font.
Author
Glenn Adams

Field Summary

Modifier and TypeField and Description
private static final Log
private KerningSubtable[]
public static final String
TAG

Tag to identify this table.

Inherited from org.apache.fontbox.ttf.TTFTable:
initialized

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public KerningSubtable

Returns:

first matching subtable or null if none found
getHorizontalKerningSubtable
()

Obtain first subtable that supports non-cross-stream horizontal kerning.

public KerningSubtable

Returns:

first matching subtable or null if none found
getHorizontalKerningSubtable
(boolean
true if requesting cross stream horizontal kerning
cross
)

Obtain first subtable that supports horizontal kerning with specified cross stream.

pack-priv void
read(TrueTypeFont
The font that is being read.
ttf
,
TTFDataStream
The stream to read the data from.
data
)

Overrides org.apache.fontbox.ttf.TTFTable.read.

This will read the required data from the stream.

Inherited from org.apache.fontbox.ttf.TTFTable:
getCheckSumgetInitializedgetLengthgetOffsetgetTagreadHeaderssetCheckSumsetLengthsetOffsetsetTag

Field Detail

LOGback to summary
private static final Log LOG
subtablesback to summary
private KerningSubtable[] subtables
TAGback to summary
public static final String TAG

Tag to identify this table.

Constructor Detail

KerningTableback to summary
pack-priv KerningTable()

Method Detail

getHorizontalKerningSubtableback to summary
public KerningSubtable getHorizontalKerningSubtable()

Obtain first subtable that supports non-cross-stream horizontal kerning.

Returns:KerningSubtable

first matching subtable or null if none found

getHorizontalKerningSubtableback to summary
public KerningSubtable getHorizontalKerningSubtable(boolean cross)

Obtain first subtable that supports horizontal kerning with specified cross stream.

Parameters
cross:boolean

true if requesting cross stream horizontal kerning

Returns:KerningSubtable

first matching subtable or null if none found

readback to summary
pack-priv void read(TrueTypeFont ttf, TTFDataStream data) throws IOException

Overrides org.apache.fontbox.ttf.TTFTable.read.

This will read the required data from the stream.

Parameters
ttf:TrueTypeFont

The font that is being read.

data:TTFDataStream

The stream to read the data from.

Annotations
@Override
Exceptions
IOException:
If there is an error reading the data.