diff options
Diffstat (limited to 'src/java/org/apache/fop/fonts/FontTriplet.java')
-rw-r--r-- | src/java/org/apache/fop/fonts/FontTriplet.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fonts/FontTriplet.java b/src/java/org/apache/fop/fonts/FontTriplet.java index a7890ecbd..9091219f5 100644 --- a/src/java/org/apache/fop/fonts/FontTriplet.java +++ b/src/java/org/apache/fop/fonts/FontTriplet.java @@ -38,13 +38,21 @@ public class FontTriplet implements Comparable, Serializable { private transient String key; /** + * Creates a new font triplet (for base14 use). + * @param name font name + */ + public FontTriplet(String name) { + this.name = name; + } + + /** * Creates a new font triplet. * @param name font name * @param style font style (normal, italic etc.) * @param weight font weight (100, 200, 300...800, 900) */ public FontTriplet(String name, String style, int weight) { - this(name, style, weight, 0); + this(name, style, weight, Font.PRIORITY_DEFAULT); } /** @@ -55,7 +63,7 @@ public class FontTriplet implements Comparable, Serializable { * @param priority priority of this triplet/font mapping */ public FontTriplet(String name, String style, int weight, int priority) { - this.name = name; + this(name); this.style = style; this.weight = weight; this.priority = priority; @@ -120,6 +128,5 @@ public class FontTriplet implements Comparable, Serializable { public String toString() { return getKey(); } - } |