Class DefaultFontContext

java.lang.Object
org.pentaho.reporting.libraries.fonts.registry.DefaultFontContext
All Implemented Interfaces:
FontContext

public class DefaultFontContext extends java.lang.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, java.lang.String encoding)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.String
     
    double
    The requested font size.
    boolean
    This is controlled by the output target and the stylesheet.
    boolean
     
    boolean
    This is defined by the output target.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultFontContext

      public DefaultFontContext(double fontSize, boolean antiAliased, boolean fractionalMetrics, boolean embedded, java.lang.String encoding)
  • Method Details

    • 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 interface FontContext
      Returns:
    • isFractionalMetrics

      public boolean isFractionalMetrics()
      This is defined by the output target. This is not controlled by the stylesheet.
      Specified by:
      isFractionalMetrics in interface 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 interface FontContext
      Returns:
      the font size.
    • isEmbedded

      public boolean isEmbedded()
      Specified by:
      isEmbedded in interface FontContext
    • getEncoding

      public java.lang.String getEncoding()
      Specified by:
      getEncoding in interface FontContext