org.pentaho.reporting.libraries.fonts.truetype

Class TrueTypeFontMetrics

public class TrueTypeFontMetrics extends Object implements FontMetrics

Creation-Date: 15.12.2005, 12:01:13

Author: Thomas Morgner

Constructor Summary
TrueTypeFontMetrics(ScalableTrueTypeFontMetrics fontMetrics, double fontSize)
Method Summary
longgetAscent()
From the baseline to the
BaselineInfogetBaselines(int c, BaselineInfo info)
Baselines are defined for scripts, not glyphs.
longgetCharWidth(int character)
longgetDescent()
longgetItalicAngle()
longgetKerning(int previous, int character)
longgetLeading()
longgetMaxAscent()
longgetMaxCharAdvance()
longgetMaxDescent()
longgetMaxHeight()
longgetOverlinePosition()
longgetStrikeThroughPosition()
longgetUnderlinePosition()
longgetXHeight()
booleanisUniformFontMetrics()
Is it guaranteed that the font always returns the same baseline info objct?

Constructor Detail

TrueTypeFontMetrics

public TrueTypeFontMetrics(ScalableTrueTypeFontMetrics fontMetrics, double fontSize)

Method Detail

getAscent

public long getAscent()
From the baseline to the

Returns:

getBaselines

public BaselineInfo getBaselines(int c, BaselineInfo info)
Baselines are defined for scripts, not glyphs. A glyph carries script information most of the time (unless it is a neutral characters or just weird).

Parameters: c

Returns:

getCharWidth

public long getCharWidth(int character)

getDescent

public long getDescent()

getItalicAngle

public long getItalicAngle()

getKerning

public long getKerning(int previous, int character)

getLeading

public long getLeading()

getMaxAscent

public long getMaxAscent()

getMaxCharAdvance

public long getMaxCharAdvance()

getMaxDescent

public long getMaxDescent()

getMaxHeight

public long getMaxHeight()

getOverlinePosition

public long getOverlinePosition()

getStrikeThroughPosition

public long getStrikeThroughPosition()

getUnderlinePosition

public long getUnderlinePosition()

getXHeight

public long getXHeight()

isUniformFontMetrics

public boolean isUniformFontMetrics()
Is it guaranteed that the font always returns the same baseline info objct?

Returns: true, if the baseline info in question is always the same, false otherwise.