|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fonts.FontUtil
public final class FontUtil
Font utilities.
| Method Summary | |
|---|---|
static java.lang.String |
guessStyle(java.lang.String fontName)
Guesses the font style of a font using its name. |
static int |
guessWeight(java.lang.String fontName)
Guesses the font weight of a font using its name. |
static int |
parseCSS2FontWeight(java.lang.String text)
Parses an CSS2 (SVG and XSL-FO) font weight (normal, bold, 100-900) to an integer. |
static java.lang.String |
stripWhiteSpace(java.lang.String str)
Removes all white space from a string (used primarily for font names) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int parseCSS2FontWeight(java.lang.String text)
text - the font weight to parse
public static java.lang.String stripWhiteSpace(java.lang.String str)
str - the string
public static java.lang.String guessStyle(java.lang.String fontName)
fontName - the font name
public static int guessWeight(java.lang.String fontName)
fontName - the font name
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||