Class CSS20FontDescription

java.lang.Object
com.adobe.fontengine.font.FontDescription
com.adobe.fontengine.inlineformatting.css20.CSS20FontDescription
All Implemented Interfaces:
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:
  • Constructor Details

    • CSS20FontDescription

      public CSS20FontDescription(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 Details

    • getFamilyName

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

      public CSS20Attribute.CSSStyleValue getStyle()
      Get the CSS font style.
      Returns:
      the CSS font style.
    • getVariant

      public CSS20Attribute.CSSVariantValue getVariant()
      Get the CSS font variant.
      Returns:
      the CSS font variant
    • getWeight

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

      public CSS20Attribute.CSSStretchValue getStretch()
      Get the CSS font stretch.
      Returns:
      the CSS font stretch
    • 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 Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object