fop 0.90alpha1

org.apache.fop.fonts
Class FontUtil

java.lang.Object
  |
  +--org.apache.fop.fonts.FontUtil

public class FontUtil
extends java.lang.Object

Font utilities.


Constructor Summary
FontUtil()
           
 
Method Summary
static int parseCSS2FontWeight(java.lang.String text)
          Parses an CSS2 (SVG and XSL-FO) font weight (normal, bold, 100-900) to an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontUtil

public FontUtil()
Method Detail

parseCSS2FontWeight

public static int parseCSS2FontWeight(java.lang.String text)
Parses an CSS2 (SVG and XSL-FO) font weight (normal, bold, 100-900) to an integer. See http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-weight TODO: Implement "lighter" and "bolder".
Parameters:
text - the font weight to parse
Returns:
an integer between 100 and 900 (100, 200, 300...)

fop 0.90alpha1

Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.