Class AbstractOutputMetaData.ReusableFontContext
java.lang.Object
org.pentaho.reporting.libraries.css.dom.AbstractOutputMetaData.ReusableFontContext
- All Implemented Interfaces:
org.pentaho.reporting.libraries.fonts.registry.FontContext
- Enclosing class:
- AbstractOutputMetaData
protected static class AbstractOutputMetaData.ReusableFontContext
extends Object
implements org.pentaho.reporting.libraries.fonts.registry.FontContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
The requested font size.boolean
This is controlled by the output target and the stylesheet.boolean
boolean
This is defined by the output target.void
setAntiAliased
(boolean antiAliased) void
setEmbedded
(boolean embedded) void
setEncoding
(String encoding) void
setFontSize
(double fontSize)
-
Constructor Details
-
ReusableFontContext
protected ReusableFontContext()
-
-
Method Details
-
isEmbedded
public boolean isEmbedded()- Specified by:
isEmbedded
in interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
-
setEmbedded
public void setEmbedded(boolean embedded) -
getEncoding
- Specified by:
getEncoding
in interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
-
setEncoding
-
setAntiAliased
public void setAntiAliased(boolean antiAliased) -
setFontSize
public void setFontSize(double fontSize) -
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:
isAntiAliased
in interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
- Returns:
-
isFractionalMetrics
public boolean isFractionalMetrics()This is defined by the output target. This is not controlled by the stylesheet.- Specified by:
isFractionalMetrics
in interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
- 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:
getFontSize
in interfaceorg.pentaho.reporting.libraries.fonts.registry.FontContext
- Returns:
- the font size.
-