Class FontSpec
java.lang.Object
org.apache.fop.tools.fontlist.FontSpec
- All Implemented Interfaces:
Comparable
Represents a font with information on how it can be used from XSL-FO.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFamilyNames(Collection<String> names) Adds font family names.voidaddTriplet(FontTriplet triplet) Adds a font triplet.intbooleanReturns the font family names.Returns the font metrics.getKey()Returns the internal font key.Returns the font triplets.inthashCode()
-
Field Details
-
key
-
metrics
-
familyNames
-
triplets
-
-
Constructor Details
-
FontSpec
Creates a new font spec.- Parameters:
key- the internal font keymetrics- the font metrics
-
-
Method Details
-
addFamilyNames
Adds font family names.- Parameters:
names- the names
-
addTriplet
Adds a font triplet.- Parameters:
triplet- the font triplet
-
getFamilyNames
-
getTriplets
-
getKey
-
getFontMetrics
-
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable
-