|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.substitute.FontQualifier
public class FontQualifier
Encapsulates a font substitution qualifier
Constructor Summary | |
---|---|
FontQualifier()
Default constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FontQualifier()
Method Detail |
---|
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 info
protected FontTriplet bestMatch(FontInfo fontInfo)
fontInfo
- the font info
public java.util.List getTriplets()
public java.lang.String toString()
toString
in class java.lang.Object
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |