org.apache.fontbox.ttf

Class HorizontalMetricsTable

public class HorizontalMetricsTable extends TTFTable

A table in a true type font.

Version: $Revision: 1.1 $

Author: Ben Litchfield (ben@benlitchfield.com)

Field Summary
static StringTAG
A tag that identifies this table type.
Method Summary
int[]getAdvanceWidth()
voidinitData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidsetAdvanceWidth(int[] advanceWidthValue)

Field Detail

TAG

public static final String TAG
A tag that identifies this table type.

Method Detail

getAdvanceWidth

public int[] getAdvanceWidth()

Returns: Returns the advanceWidth.

initData

public void initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.

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.

setAdvanceWidth

public void setAdvanceWidth(int[] advanceWidthValue)

Parameters: advanceWidthValue The advanceWidth to set.