public class FontQualifier
extends java.lang.Object
Constructor | Description |
---|---|
FontQualifier() |
Default constructor
|
Modifier and Type | Method | Description |
---|---|---|
protected FontTriplet |
bestMatch(FontInfo fontInfo) |
Returns the highest priority matching font triplet found in a given font info
|
AttributeValue |
getFontFamily() |
|
AttributeValue |
getFontStyle() |
|
AttributeValue |
getFontWeight() |
|
java.util.List |
getTriplets() |
|
boolean |
hasFontStyle() |
|
boolean |
hasFontWeight() |
|
protected java.util.List |
match(FontInfo fontInfo) |
Returns a list of matching font triplet found in a given font info
|
void |
setFontFamily(java.lang.String fontFamily) |
Sets the font family
|
void |
setFontStyle(java.lang.String fontStyle) |
Sets the font style
|
void |
setFontWeight(java.lang.String fontWeight) |
Sets the font weight
|
java.lang.String |
toString() |
public void setFontFamily(java.lang.String fontFamily)
fontFamily
- the font familypublic void setFontStyle(java.lang.String fontStyle)
fontStyle
- the font stylepublic void setFontWeight(java.lang.String fontWeight)
fontWeight
- the font weightpublic AttributeValue getFontFamily()
public AttributeValue getFontStyle()
public AttributeValue getFontWeight()
public boolean hasFontWeight()
public boolean hasFontStyle()
protected java.util.List match(FontInfo fontInfo)
fontInfo
- the font infoprotected FontTriplet bestMatch(FontInfo fontInfo)
fontInfo
- the font infopublic java.util.List getTriplets()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.