public final class CommonFont extends Object
Modifier and Type | Field and Description |
---|---|
Length |
fontSize
The "font-size" property.
|
Numeric |
fontSizeAdjust
The "font-size-adjust" property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFirstFontFamily() |
int |
getFontSelectionStrategy() |
Length |
getFontSize() |
Numeric |
getFontSizeAdjust() |
FontTriplet[] |
getFontState(FontInfo fontInfo)
Create and return an array of
FontTriplets based on
the properties stored in the instance variables. |
int |
getFontStretch() |
int |
getFontStyle() |
int |
getFontVariant() |
int |
getFontWeight() |
static CommonFont |
getInstance(PropertyList pList)
Returns a CommonFont instance for the given PropertyList
If the font-size and font-size-adjust properties are absolute
the entire instance will be cached.
|
int |
hashCode() |
public final Length fontSize
public final Numeric fontSizeAdjust
public static CommonFont getInstance(PropertyList pList) throws PropertyException
pList
- the PropertyList to get the properties fromPropertyException
- if there was a problem getting the propertiespublic String getFirstFontFamily()
public int getFontSelectionStrategy()
public int getFontStretch()
public int getFontStyle()
public int getFontVariant()
public int getFontWeight()
public Length getFontSize()
public Numeric getFontSizeAdjust()
public FontTriplet[] getFontState(FontInfo fontInfo)
FontTriplets
based on
the properties stored in the instance variables.fontInfo
- a font info objectCopyright © 2025 Apache Software Foundation. All rights reserved.