org.pentaho.reporting.libraries.fonts.truetype
Class ScalableTrueTypeFontMetrics

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.truetype.ScalableTrueTypeFontMetrics

public class ScalableTrueTypeFontMetrics
extends java.lang.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
 long getAscent()
          From the baseline to the
 long getDescent()
           
 TrueTypeFont getFont()
           
 long getItalicAngle()
           
 long getLeading()
           
 long getMaxAscent()
           
 long getMaxCharAdvance()
           
 long getMaxDescent()
           
 long getStrikeThroughPosition()
           
 long getUnderlinePosition()
           
 long getXHeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalableTrueTypeFontMetrics

public ScalableTrueTypeFontMetrics(TrueTypeFont font)
                            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getAscent

public long getAscent()
From the baseline to the

Returns:

getDescent

public long getDescent()

getLeading

public long getLeading()

getXHeight

public long getXHeight()

getUnderlinePosition

public long getUnderlinePosition()

getStrikeThroughPosition

public long getStrikeThroughPosition()

getFont

public TrueTypeFont getFont()

getItalicAngle

public long getItalicAngle()

getMaxAscent

public long getMaxAscent()

getMaxDescent

public long getMaxDescent()

getMaxCharAdvance

public long getMaxCharAdvance()