aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fonts/FontMetrics.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-11-08 18:36:01 +0000
committerJeremias Maerki <jeremias@apache.org>2007-11-08 18:36:01 +0000
commit38b57688e03dabc7e72d3d547dc1dd52e2a21ac5 (patch)
tree1a935ed59d6f143f64cd69a9b1165d88f8c0ffec /src/java/org/apache/fop/fonts/FontMetrics.java
parent11aa26d46621bd6e74143124868eb22906514677 (diff)
downloadxmlgraphics-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/FontMetrics.java')
-rw-r--r--src/java/org/apache/fop/fonts/FontMetrics.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fonts/FontMetrics.java b/src/java/org/apache/fop/fonts/FontMetrics.java
index 2c4ada0ae..ce4b1ff00 100644
--- a/src/java/org/apache/fop/fonts/FontMetrics.java
+++ b/src/java/org/apache/fop/fonts/FontMetrics.java
@@ -20,6 +20,7 @@
package org.apache.fop.fonts;
import java.util.Map;
+import java.util.Set;
/**
@@ -40,10 +41,10 @@ public interface FontMetrics {
String getFullName();
/**
- * Returns the font's family name (Example: "Helvetica").
- * @return the font's family name
+ * Returns the font's family names as a Set of Strings (Example: "Helvetica").
+ * @return the font's family names (a Set of Strings)
*/
- String getFamilyName();
+ Set getFamilyNames();
/**
* Returns the font name for font embedding (may include a prefix, Example: "1E28bcArialMT").