public class FontSpec extends Object implements Comparable
| Constructor and Description |
|---|
FontSpec(String key,
FontMetrics metrics)
Creates a new font spec.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFamilyNames(Collection<String> names)
Adds font family names.
|
void |
addTriplet(FontTriplet triplet)
Adds a font triplet.
|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
SortedSet |
getFamilyNames()
Returns the font family names.
|
FontMetrics |
getFontMetrics()
Returns the font metrics.
|
String |
getKey()
Returns the internal font key.
|
Collection |
getTriplets()
Returns the font triplets.
|
int |
hashCode() |
public FontSpec(String key, FontMetrics metrics)
key - the internal font keymetrics - the font metricspublic void addFamilyNames(Collection<String> names)
names - the namespublic void addTriplet(FontTriplet triplet)
triplet - the font tripletpublic SortedSet getFamilyNames()
public Collection getTriplets()
public String getKey()
public FontMetrics getFontMetrics()
public int compareTo(Object o)
compareTo in interface ComparableCopyright © 2025 Apache Software Foundation. All rights reserved.