org.apache.batik.bridge

Class FontFace

public abstract class FontFace extends GVTFontFace implements ErrorConstants

This class represents a <font-face> element or @font-face rule
Constructor Summary
FontFace(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.
protected FontFace(String familyName)
Constructes an SVGFontFace with the specfied fontName.
Method Summary
static CSSFontFacecreateFontFace(String familyName, FontFace src)
protected ElementgetBaseElement(BridgeContext ctx)
Default implementation uses the root element of the document associated with BridgeContext.
GVTFontFamilygetFontFamily(BridgeContext ctx)
Returns the font associated with this rule or element.
protected GVTFontFamilygetFontFamily(BridgeContext ctx, ParsedURL purl)
Tries to build a GVTFontFamily from a URL reference

Constructor Detail

FontFace

public FontFace(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.

FontFace

protected FontFace(String familyName)
Constructes an SVGFontFace with the specfied fontName.

Method Detail

createFontFace

public static CSSFontFace createFontFace(String familyName, FontFace src)

getBaseElement

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

getFontFamily

public GVTFontFamily getFontFamily(BridgeContext ctx)
Returns the font associated with this rule or element.

getFontFamily

protected GVTFontFamily getFontFamily(BridgeContext ctx, ParsedURL purl)
Tries to build a GVTFontFamily from a URL reference
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.