org.apache.batik.bridge
public abstract class SVGFontUtilities extends Object implements SVGConstants
Method Summary | |
---|---|
static List | getFontFaces(Document doc, BridgeContext ctx) |
static GVTFontFamily | getFontFamily(Element textElement, BridgeContext ctx, String fontFamilyName, String fontWeight, String fontStyle)
Given a font family name tries to find a matching SVG font
object. |
protected static String | getFontWeightNumberString(String fontWeight)
Returns a string that contains all of the font weight numbers for the
specified font weight attribute value.
|
Parameters: textElement The text element that the font family will be attached to. ctx The bridge context, used to search for a matching SVG font element. fontFamilyName The name of the font family to search for. fontWeight The weight of the font to use when trying to match an SVG font family. fontStyle The style of the font to use when trying to match as SVG font family.
Returns: A GVTFontFamily for the specified font attributes. This will be unresolved unless a matching SVG font was found.
Parameters: fontWeight The font-weight attribute value.
Returns: The font weight expressed as font weight numbers. e.g. "normal" becomes "400".