Class FontSpecification


  • public class FontSpecification
    extends java.lang.Object
    Creation-Date: 15.12.2005, 11:44:22
    Author:
    Thomas Morgner
    • Constructor Detail

      • FontSpecification

        public FontSpecification​(LayoutStyle style)
    • Method Detail

      • 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. This font size is given in point.
        Returns:
        the font size.
      • setFontSize

        public void setFontSize​(double fontSize)
        The font size is resolved once during the resolve cycle. It is more than just looking up the value in the stylesheet, as we have to take the font size adjustment into account. This font size is given in micro-point.
        Parameters:
        fontSize - the font size as used during the rendering.
      • getFontFamily

        public java.lang.String getFontFamily()
      • setFontFamily

        public void setFontFamily​(java.lang.String fontFamily)
        Redefines the physical font family. The resolving is done once during the style resolve run, logical fonts get mapped into their physical counterparts.
        Parameters:
        fontFamily -
      • getFontWeight

        public int getFontWeight()
      • isItalic

        public boolean isItalic()
      • isOblique

        public boolean isOblique()
      • isSmallCaps

        public boolean isSmallCaps()
      • isAntiAliasing

        public boolean isAntiAliasing()