public class FontQualifier extends 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() |
List<FontTriplet> |
getTriplets() |
boolean |
hasFontStyle() |
boolean |
hasFontWeight() |
protected List<FontTriplet> |
match(FontInfo fontInfo)
Returns a list of matching font triplet found in a given font info
|
void |
setFontFamily(String fontFamily)
Sets the font family
|
void |
setFontStyle(String fontStyle)
Sets the font style
|
void |
setFontWeight(String fontWeight)
Sets the font weight
|
String |
toString() |
public void setFontFamily(String fontFamily)
fontFamily
- the font familypublic void setFontStyle(String fontStyle)
fontStyle
- the font stylepublic void setFontWeight(String fontWeight)
fontWeight
- the font weightpublic AttributeValue getFontFamily()
public AttributeValue getFontStyle()
public AttributeValue getFontWeight()
public boolean hasFontWeight()
public boolean hasFontStyle()
protected List<FontTriplet> match(FontInfo fontInfo)
fontInfo
- the font infoprotected FontTriplet bestMatch(FontInfo fontInfo)
fontInfo
- the font infopublic List<FontTriplet> getTriplets()
Copyright © 2025 Apache Software Foundation. All rights reserved.