public class FontTriplet extends Object implements Comparable<FontTriplet>, Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
FontTriplet.Matcher
Matcher interface for
FontTriplet . |
Modifier and Type | Field and Description |
---|---|
static FontTriplet |
DEFAULT_FONT_TRIPLET |
Constructor and Description |
---|
FontTriplet() |
FontTriplet(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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FontTriplet o) |
boolean |
equals(Object obj) |
String |
getName() |
int |
getPriority() |
String |
getStyle() |
int |
getWeight() |
int |
hashCode() |
String |
toString() |
public static final FontTriplet DEFAULT_FONT_TRIPLET
public FontTriplet()
public FontTriplet(String name, String style, int weight)
name
- font namestyle
- font style (normal, italic etc.)weight
- font weight (100, 200, 300...800, 900)public String getName()
public String getStyle()
public int getWeight()
public int getPriority()
public int compareTo(FontTriplet o)
compareTo
in interface Comparable<FontTriplet>
Copyright © 2025 Apache Software Foundation. All rights reserved.