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

public Class IndexToLocationTable

extends TTFTable
Class Inheritance
Imports
java.io.IOException

This 'loca'-table is a required table in a TrueType font.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private static final short
private long[]
private static final short
public static final String
TAG

A tag that identifies this table type.

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long[]

Returns:

Returns the offsets.
getOffsets
()

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.

public void
setOffsets(long[]
The offsets to set.
offsetsValue
)

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

Field Detail

LONG_OFFSETSback to summary
private static final short LONG_OFFSETS
offsetsback to summary
private long[] offsets
SHORT_OFFSETSback to summary
private static final short SHORT_OFFSETS
TAGback to summary
public static final String TAG

A tag that identifies this table type.

Constructor Detail

IndexToLocationTableback to summary
pack-priv IndexToLocationTable()

Method Detail

getOffsetsback to summary
public long[] getOffsets()
Returns:long[]

Returns the offsets.

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.
setOffsetsback to summary
public void setOffsets(long[] offsetsValue)
Parameters
offsetsValue:long[]

The offsets to set.