Class CSS20FontDescription

  • All Implemented Interfaces:
    java.io.Serializable

    public final class CSS20FontDescription
    extends FontDescription
    CSSPDF16FontDescription This class provides a description of the font in a CSS2.0/PDF1.6 terms.
    See Also:
    Serialized Form
    • Constructor Detail

      • CSS20FontDescription

        public CSS20FontDescription​(java.lang.String familyName,
                                    CSS20Attribute.CSSStyleValue style,
                                    CSS20Attribute.CSSVariantValue variant,
                                    CSS20Attribute.CSSStretchValue stretch,
                                    int weight,
                                    double lowPointSize,
                                    double highPointSize)
        Constructor.
        Parameters:
        familyName - The family name of the font.
        style - The style of the font.
        variant - The variant of the font.
        stretch - The stretch value of the font.
        weight - The weight of the font.
        lowPointSize - The lowest point size that the font supports (inclusive).
        highPointSize - The highest point size that the font supports (exclusive).
    • Method Detail

      • getFamilyName

        public java.lang.String getFamilyName()
        Get the CSS font-family name.
        Returns:
        the CSS font-family name.
      • getWeight

        public int getWeight()
        Get the CSS font weight.
        Returns:
        the CSS font weight
      • getLowPointSize

        public double getLowPointSize()
        Get the lowest point size (inclusive) supported by this font.
        Returns:
        the low inclusive point size
      • getHighPointSize

        public double getHighPointSize()
        Get the highest point size (exclusive) supported by this font.
        Returns:
        the high exclusive point size
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object