public final class FontUtility
extends java.lang.Object
Class containing font-related utility methods.
References to CSS2 are to the Cascading Style Sheet standard, version 2.0, found at:
http://www.w3.org/TR/REC-CSS2/
References to XSL-FO refer to the eXtensible Stylesheet Language Formatting Objects standard, version 1.0, found at:
http://www.w3.org/TR/2001/REC-xsl-20011015/
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
cssFontFamily(java.lang.CharSequence input)
Converts a CSS2-style String input for font-family into a value expected
by
FontConsumer.selectFontCss(List, Font.Style, Font.Weight,
Font.Variant, Font.Stretch, int, int) . |
static java.util.List<java.lang.String> |
foFontFamily(java.lang.CharSequence input)
Same as
cssFontFamily(CharSequence) , except input is an
XSL-FO-style String. |
public static java.util.List<java.lang.String> cssFontFamily(java.lang.CharSequence input)
FontConsumer.selectFontCss(List, Font.Style, Font.Weight,
Font.Variant, Font.Stretch, int, int)
.input
- The CSS2-style font-family String to be converted.
This is a comma-delimited String containing one or more potential
font-family items to be selected. Consult the CSS2 standard for
details.FontConsumer.selectFontCss(List, Font.Style, Font.Weight,
Font.Variant, Font.Stretch, int, int)
public static java.util.List<java.lang.String> foFontFamily(java.lang.CharSequence input)
cssFontFamily(CharSequence)
, except input is an
XSL-FO-style String.input
- The XSL-FO font-family String to be converted.
This is a comma-delimited String containing one or more potential
font-family items to be selected. Consult the XSL-FO standard for
details.cssFontFamily(CharSequence)
This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.