Преглед на файлове

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
tags/Defoe_export
Peter Bernard West преди 20 години
родител
ревизия
dc4c264e59
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12
    0
      src/java/org/apache/fop/fo/properties/FontFamily.java

+ 12
- 0
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

Loading…
Отказ
Запис