org.pentaho.reporting.libraries.fonts.registry

Class DefaultFontContext

public class DefaultFontContext extends Object implements FontContext

Creation-Date: 01.02.2006, 22:10:01

Author: Thomas Morgner

Constructor Summary
DefaultFontContext(double fontSize, boolean antiAliased, boolean fractionalMetrics, boolean embedded, String encoding)
Method Summary
StringgetEncoding()
doublegetFontSize()
The requested font size.
booleanisAntiAliased()
This is controlled by the output target and the stylesheet.
booleanisEmbedded()
booleanisFractionalMetrics()
This is defined by the output target.

Constructor Detail

DefaultFontContext

public DefaultFontContext(double fontSize, boolean antiAliased, boolean fractionalMetrics, boolean embedded, String encoding)

Method Detail

getEncoding

public String getEncoding()

getFontSize

public double getFontSize()
The requested font size. A font may have a fractional font size (ie. 8.5 point). The font size may be influenced by the output target.

Returns: the font size.

isAntiAliased

public boolean isAntiAliased()
This is controlled by the output target and the stylesheet. If the output target does not support aliasing, it makes no sense to enable it and all such requests are ignored.

Returns:

isEmbedded

public boolean isEmbedded()

isFractionalMetrics

public boolean isFractionalMetrics()
This is defined by the output target. This is not controlled by the stylesheet.

Returns: