javax.swing.text.html
Class CSS.ShorthandFontParser
java.lang.Object
javax.swing.text.html.CSS.ShorthandFontParser
- Enclosing class:
- CSS
- static class CSS.ShorthandFontParser
- extends Object
Class used to parse font property. The font property is shorthand
for the other font properties. This expands the properties, placing
them in the attributeset.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSS.ShorthandFontParser
CSS.ShorthandFontParser()
parseShorthandFont
static void parseShorthandFont(CSS css,
String value,
MutableAttributeSet attr)
- Parses the shorthand font string
value
, placing the
result in attr
.
isFontStyle
private static boolean isFontStyle(String string)
isFontVariant
private static boolean isFontVariant(String string)
isFontWeight
private static boolean isFontWeight(String string)