diff options
author | Peter Bernard West <pbwest@apache.org> | 2004-05-27 15:14:17 +0000 |
---|---|---|
committer | Peter Bernard West <pbwest@apache.org> | 2004-05-27 15:14:17 +0000 |
commit | dc4c264e59358783426c896ecd79a0c1b70b7219 (patch) | |
tree | 8764a2e5236306cce43f4592929d8aa80ca83266 /src | |
parent | cfa9f0b37c8c3c57f6cdd7bce35495363de1db4b (diff) | |
download | xmlgraphics-fop-dc4c264e59358783426c896ecd79a0c1b70b7219.tar.gz xmlgraphics-fop-dc4c264e59358783426c896ecd79a0c1b70b7219.zip |
Added isGeneric test for a font family name
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197638 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/properties/FontFamily.java | 12 |
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 |