diff options
author | Jeremias Maerki <jeremias@apache.org> | 2007-11-08 18:36:01 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2007-11-08 18:36:01 +0000 |
commit | 38b57688e03dabc7e72d3d547dc1dd52e2a21ac5 (patch) | |
tree | 1a935ed59d6f143f64cd69a9b1165d88f8c0ffec /src/java/org/apache/fop/fonts/MutableFont.java | |
parent | 11aa26d46621bd6e74143124868eb22906514677 (diff) | |
download | xmlgraphics-fop-38b57688e03dabc7e72d3d547dc1dd52e2a21ac5.tar.gz xmlgraphics-fop-38b57688e03dabc7e72d3d547dc1dd52e2a21ac5.zip |
Another improvement for font auto-detection:
Some TrueType fonts have multiple font family names which we haven't extracted so far. All these names are now exposed as a Set of Strings.
An example: Futura Book BT has two font families: Futura (Mac platform) and Futura Bk BT (Windows platform).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593245 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fonts/MutableFont.java')
-rw-r--r-- | src/java/org/apache/fop/fonts/MutableFont.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fonts/MutableFont.java b/src/java/org/apache/fop/fonts/MutableFont.java index 657239dcf..12260435d 100644 --- a/src/java/org/apache/fop/fonts/MutableFont.java +++ b/src/java/org/apache/fop/fonts/MutableFont.java @@ -20,6 +20,7 @@ package org.apache.fop.fonts; import java.util.Map; +import java.util.Set; /** @@ -41,10 +42,10 @@ public interface MutableFont { void setFullName(String name); /** - * Sets the font's family name (Example: "Helvetica"). - * @param name the font's family name + * Sets the font's family names (Example: "Helvetica"). + * @param name the font's family names (a Set of Strings) */ - void setFamilyName(String name); + void setFamilyNames(Set names); /** * Sets the path to the embeddable font file. |