org.apache.fop.fo.properties
public final class CommonFont extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CommonFont.CachedCommonFont
Class holding canonical instances of bundles of the
cacheable (non-relative) CommonFont properties
|
| 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(java.lang.Object o) |
java.lang.String |
getFirstFontFamily() |
int |
getFontSelectionStrategy() |
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 java.lang.String getFirstFontFamily()
public int getFontSelectionStrategy()
public int getFontStretch()
public int getFontStyle()
public int getFontVariant()
public int getFontWeight()
public FontTriplet[] getFontState(FontInfo fontInfo)
FontTriplets based on
the properties stored in the instance variables.fontInfo - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.