pbwest      2004/05/27 08:14:17

  Modified:    src/java/org/apache/fop/fo/properties Tag:
                        FOP_0-20-0_Alt-Design FontFamily.java
  Log:
  Added isGeneric test for a font family name
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.5   +13 -1     
xml-fop/src/java/org/apache/fop/fo/properties/Attic/FontFamily.java
  
  Index: FontFamily.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Attic/FontFamily.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- FontFamily.java   19 Feb 2004 03:11:40 -0000      1.1.2.4
  +++ FontFamily.java   27 May 2004 15:14:17 -0000      1.1.2.5
  @@ -80,6 +80,18 @@
           }
       }
   
  +    /**
  +     * 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
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to