org.pentaho.reporting.libraries.fonts.truetype

Class ScalableTrueTypeFontMetrics

public class ScalableTrueTypeFontMetrics extends Object

This is the scalable backend for truetype fonts. To make any use of it, you have to apply the font size to these metrics.

Author: Thomas Morgner

Constructor Summary
ScalableTrueTypeFontMetrics(TrueTypeFont font)
Method Summary
longgetAscent()
From the baseline to the
longgetDescent()
TrueTypeFontgetFont()
longgetItalicAngle()
longgetLeading()
longgetMaxAscent()
longgetMaxCharAdvance()
longgetMaxDescent()
longgetStrikeThroughPosition()
longgetUnderlinePosition()
longgetXHeight()

Constructor Detail

ScalableTrueTypeFontMetrics

public ScalableTrueTypeFontMetrics(TrueTypeFont font)

Method Detail

getAscent

public long getAscent()
From the baseline to the

Returns:

getDescent

public long getDescent()

getFont

public TrueTypeFont getFont()

getItalicAngle

public long getItalicAngle()

getLeading

public long getLeading()

getMaxAscent

public long getMaxAscent()

getMaxCharAdvance

public long getMaxCharAdvance()

getMaxDescent

public long getMaxDescent()

getStrikeThroughPosition

public long getStrikeThroughPosition()

getUnderlinePosition

public long getUnderlinePosition()

getXHeight

public long getXHeight()