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

public Class VerticalMetricsTable

extends TTFTable
Class Inheritance
Imports
java.io.IOException

A vertical metrics 'vmtx' table in a TrueType or OpenType font. This table is required by the OpenType CJK Font Guidelines for "all OpenType fonts that are used for vertical writing". This table is specified in both the TrueType and OpenType specifications.
Author
Glenn Adams

Field Summary

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

A tag that identifies this table type.

private short[]
Inherited from org.apache.fontbox.ttf.TTFTable:
initialized

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

advance height for the given GID
getAdvanceHeight
(int
GID
gid
)

Returns the advance height for the given GID.

public int

Returns:

top sidebearing for the given GID
getTopSideBearing
(int
GID
gid
)

Returns the top sidebearing for the given GID

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

additionalTopSideBearingback to summary
private short[] additionalTopSideBearing
advanceHeightback to summary
private int[] advanceHeight
numVMetricsback to summary
private int numVMetrics
TAGback to summary
public static final String TAG

A tag that identifies this table type.

topSideBearingback to summary
private short[] topSideBearing

Constructor Detail

VerticalMetricsTableback to summary
pack-priv VerticalMetricsTable()

Method Detail

getAdvanceHeightback to summary
public int getAdvanceHeight(int gid)

Returns the advance height for the given GID.

Parameters
gid:int

GID

Returns:int

advance height for the given GID

getTopSideBearingback to summary
public int getTopSideBearing(int gid)

Returns the top sidebearing for the given GID

Parameters
gid:int

GID

Returns:int

top sidebearing for the given GID

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.