org.apache.fop.fonts
Class FontTriplet
java.lang.Object
org.apache.fop.fonts.FontTriplet
- Comparable, Serializable
public class FontTriplet
extends java.lang.Object
implements Comparable, Serializable
FontTriplet contains information on name, style and weight of one font
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.
|
FontTriplet
public FontTriplet(String name,
String style,
int weight)
Creates a new font triplet.
name
- font namestyle
- font style (normal, italic etc.)weight
- font weight (100, 200, 300...800, 900)
FontTriplet
public FontTriplet(String name,
String style,
int weight,
int priority)
Creates a new font triplet.
name
- font namestyle
- font style (normal, italic etc.)weight
- font weight (100, 200, 300...800, 900)priority
- priority of this triplet/font mapping
compareTo
public int compareTo(Object o)
equals
public boolean equals(Object obj)
getName
public String getName()
getPriority
public int getPriority()
- the priority of this triplet/font mapping
getStyle
public String getStyle()
getWeight
public int getWeight()
hashCode
public int hashCode()
toString
public String toString()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.