Package org.apache.fop.fonts
Class FontTriplet
java.lang.Object
org.apache.fop.fonts.FontTriplet
- All Implemented Interfaces:
Serializable
,Comparable<FontTriplet>
FontTriplet contains information on name, style and weight of one font
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFontTriplet
(String name, String style, int weight) Creates a new font triplet.FontTriplet
(String name, String style, int weight, int priority) Creates a new font triplet. -
Method Summary
-
Field Details
-
DEFAULT_FONT_TRIPLET
-
-
Constructor Details
-
FontTriplet
public FontTriplet() -
FontTriplet
Creates a new font triplet.- Parameters:
name
- font namestyle
- font style (normal, italic etc.)weight
- font weight (100, 200, 300...800, 900)
-
FontTriplet
Creates a new font triplet.- Parameters:
name
- font namestyle
- font style (normal, italic etc.)weight
- font weight (100, 200, 300...800, 900)priority
- priority of this triplet/font mapping
-
-
Method Details
-
getName
- Returns:
- the font name
-
getStyle
- Returns:
- the font style
-
getWeight
public int getWeight()- Returns:
- the font weight
-
getPriority
public int getPriority()- Returns:
- the priority of this triplet/font mapping
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FontTriplet>
-
hashCode
public int hashCode() -
equals
-
toString
-