Class CSS20FontDescription
- java.lang.Object
-
- com.adobe.fontengine.font.FontDescription
-
- com.adobe.fontengine.inlineformatting.css20.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 Summary
Constructors Constructor Description CSS20FontDescription(java.lang.String familyName, CSS20Attribute.CSSStyleValue style, CSS20Attribute.CSSVariantValue variant, CSS20Attribute.CSSStretchValue stretch, int weight, double lowPointSize, double highPointSize)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetFamilyName()Get the CSS font-family name.doublegetHighPointSize()Get the highest point size (exclusive) supported by this font.doublegetLowPointSize()Get the lowest point size (inclusive) supported by this font.CSS20Attribute.CSSStretchValuegetStretch()Get the CSS font stretch.CSS20Attribute.CSSStyleValuegetStyle()Get the CSS font style.CSS20Attribute.CSSVariantValuegetVariant()Get the CSS font variant.intgetWeight()Get the CSS font weight.inthashCode()java.lang.StringtoString()
-
-
-
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.
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-