summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/properties/FontFamily.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/properties/FontFamily.java b/src/java/org/apache/fop/fo/properties/FontFamily.java
index ab24fcb30..3acfa5412 100644
--- a/src/java/org/apache/fop/fo/properties/FontFamily.java
+++ b/src/java/org/apache/fop/fo/properties/FontFamily.java
@@ -80,6 +80,18 @@ public class FontFamily extends Property {
}
}
+ /**
+ * Is the given string a generic font family name?
+ * @param font
+ * @return
+ */
+ public static boolean isGeneric(String font) {
+ if (rwEnumHash.get(font) != null) {
+ return true;
+ }
+ return false;
+ }
+
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value)
throws PropertyException