Class DefaultFontContext
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.registry.DefaultFontContext
-
- All Implemented Interfaces:
FontContext
public class DefaultFontContext extends Object implements FontContext
Creation-Date: 01.02.2006, 22:10:01- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description DefaultFontContext(double fontSize, boolean antiAliased, boolean fractionalMetrics, boolean embedded, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
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.- Specified by:
isAntiAliasedin interfaceFontContext- Returns:
-
isFractionalMetrics
public boolean isFractionalMetrics()
This is defined by the output target. This is not controlled by the stylesheet.- Specified by:
isFractionalMetricsin interfaceFontContext- Returns:
-
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.- Specified by:
getFontSizein interfaceFontContext- Returns:
- the font size.
-
isEmbedded
public boolean isEmbedded()
- Specified by:
isEmbeddedin interfaceFontContext
-
getEncoding
public String getEncoding()
- Specified by:
getEncodingin interfaceFontContext
-
-