Package org.apache.fop.tools.fontlist
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.
-
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()
-
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
Returns the font family names.- Returns:
- the font family names
-
getTriplets
Returns the font triplets.- Returns:
- the font triplets
-
getKey
Returns the internal font key.- Returns:
- the internal font key
-
getFontMetrics
Returns the font metrics.- Returns:
- the font metrics
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable
-