org.apache.fop.fo.properties
Class CommonFont
java.lang.Object
org.apache.fop.fo.properties.CommonFont
public final class CommonFont
extends java.lang.Object
Collection of CommonFont properties
protected static class | CommonFont.CachedCommonFont - Class holding canonical instances of bundles of the
cacheable (non-relative) CommonFont properties
|
fontSize
public final Length fontSize
The "font-size" property.
fontSizeAdjust
public final Numeric fontSizeAdjust
The "font-size-adjust" property.
equals
public boolean equals(Object o)
getFirstFontFamily
public String getFirstFontFamily()
- the first font-family name in the list
getFontSelectionStrategy
public int getFontSelectionStrategy()
- the "font-selection-strategy" property
getFontState
public FontTriplet[] getFontState(FontInfo fontInfo)
Create and return an array of FontTriplets
based on
the properties stored in the instance variables.
getFontStretch
public int getFontStretch()
- the "font-stretch" property
getFontStyle
public int getFontStyle()
- the "font-style" property
getFontVariant
public int getFontVariant()
- the "font-variant" property
getFontWeight
public int getFontWeight()
- the "font-weight" property
getInstance
public static CommonFont getInstance(PropertyList pList)
throws PropertyException
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.
pList
- the PropertyList to get the properties from
- a CommonFont instance corresponding to the properties
hashCode
public int hashCode()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.