]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added isGeneric test for a font family name
authorPeter Bernard West <pbwest@apache.org>
Thu, 27 May 2004 15:14:17 +0000 (15:14 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 27 May 2004 15:14:17 +0000 (15:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197638 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/properties/FontFamily.java

index ab24fcb3038b984b4b4af3f124e5d69dba45dea6..3acfa5412f3073044cde473dae99738c56943313 100644 (file)
@@ -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