Package org.apache.fop.fo.properties
Class CommonFont
java.lang.Object
org.apache.fop.fo.properties.CommonFont
Collection of CommonFont properties
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getFontState
(FontInfo fontInfo) Create and return an array ofFontTriplets
based on the properties stored in the instance variables.int
int
int
int
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()
-
Field Details
-
fontSize
The "font-size" property. -
fontSizeAdjust
The "font-size-adjust" property.
-
-
Method Details
-
getInstance
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. If not, then a distinct instance will be returned, with as much cached information as possible.- Parameters:
pList
- the PropertyList to get the properties from- Returns:
- a CommonFont instance corresponding to the properties
- Throws:
PropertyException
- if there was a problem getting the properties
-
getFirstFontFamily
- Returns:
- the first font-family name in the list
-
getFontSelectionStrategy
public int getFontSelectionStrategy()- Returns:
- the "font-selection-strategy" property
-
getFontStretch
public int getFontStretch()- Returns:
- the "font-stretch" property
-
getFontStyle
public int getFontStyle()- Returns:
- the "font-style" property
-
getFontVariant
public int getFontVariant()- Returns:
- the "font-variant" property
-
getFontWeight
public int getFontWeight()- Returns:
- the "font-weight" property
-
getFontSize
- Returns:
- the "font-size" property.
-
getFontSizeAdjust
- Returns:
- the "font-size-adjust" property.
-
getFontState
Create and return an array ofFontTriplets
based on the properties stored in the instance variables.- Parameters:
fontInfo
- a font info object- Returns:
- a font triplet
-
equals
-
hashCode
public int hashCode()
-