public final class CommonFont
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
Length |
fontSize |
The "font-size" property.
|
Numeric |
fontSizeAdjust |
The "font-size-adjust" property.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.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 java.lang.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 objectpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.