Class CSS20FontDescription
java.lang.Object
com.adobe.fontengine.font.FontDescription
com.adobe.fontengine.inlineformatting.css20.CSS20FontDescription
- All Implemented Interfaces:
Serializable
CSSPDF16FontDescription
This class provides a description of the font in a CSS2.0/PDF1.6 terms.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCSS20FontDescription
(String familyName, CSS20Attribute.CSSStyleValue style, CSS20Attribute.CSSVariantValue variant, CSS20Attribute.CSSStretchValue stretch, int weight, double lowPointSize, double highPointSize) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the CSS font-family name.double
Get the highest point size (exclusive) supported by this font.double
Get the lowest point size (inclusive) supported by this font.Get the CSS font stretch.getStyle()
Get the CSS font style.Get the CSS font variant.int
Get the CSS font weight.int
hashCode()
toString()
-
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
Get the CSS font-family name.- Returns:
- the CSS font-family name.
-
getStyle
Get the CSS font style.- Returns:
- the CSS font style.
-
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
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() -
equals
-
toString
-