public class FontQualifier
extends java.lang.Object
| Constructor and Description |
|---|
FontQualifier()
Default constructor
|
| Modifier and Type | Method and 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<FontTriplet> |
getTriplets() |
boolean |
hasFontStyle() |
boolean |
hasFontWeight() |
protected java.util.List<FontTriplet> |
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<FontTriplet> match(FontInfo fontInfo)
fontInfo - the font infoprotected FontTriplet bestMatch(FontInfo fontInfo)
fontInfo - the font infopublic java.util.List<FontTriplet> getTriplets()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.