org.apache.batik.bridge

Class SVGFontFace

public class SVGFontFace extends FontFace

This class represents a <font-face> element or @font-face rule
Constructor Summary
SVGFontFace(Element fontFaceElement, List srcs, String familyName, float unitsPerEm, String fontWeight, String fontStyle, String fontVariant, String fontStretch, float slope, String panose1, float ascent, float descent, float strikethroughPosition, float strikethroughThickness, float underlinePosition, float underlineThickness, float overlinePosition, float overlineThickness)
Constructes an SVGFontFace with the specfied font-face attributes.
Method Summary
protected ElementgetBaseElement(BridgeContext ctx)
Default implementation uses the root element of the document associated with BridgeContext.
ElementgetFontFaceElement()
GVTFontFamilygetFontFamily(BridgeContext ctx)
Returns the font associated with this rule or element.

Constructor Detail

SVGFontFace

public SVGFontFace(Element fontFaceElement, List srcs, String familyName, float unitsPerEm, String fontWeight, String fontStyle, String fontVariant, String fontStretch, float slope, String panose1, float ascent, float descent, float strikethroughPosition, float strikethroughThickness, float underlinePosition, float underlineThickness, float overlinePosition, float overlineThickness)
Constructes an SVGFontFace with the specfied font-face attributes.

Method Detail

getBaseElement

protected Element getBaseElement(BridgeContext ctx)
Default implementation uses the root element of the document associated with BridgeContext. This is useful for CSS case.

getFontFaceElement

public Element getFontFaceElement()

getFontFamily

public GVTFontFamily getFontFamily(BridgeContext ctx)
Returns the font associated with this rule or element.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.