org.apache.batik.bridge

Class CSSFontFace

public class CSSFontFace extends FontFace implements SVGConstants

This class represents a <font-face> element or @font-face rule
Constructor Summary
CSSFontFace(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 CSSFontFace with the specfied font-face attributes.
protected CSSFontFace(String familyName)
Method Summary
static CSSFontFacecreateCSSFontFace(CSSEngine eng, FontFaceRule ffr)
static floatgetFloatProp(StyleMap sm, CSSEngine eng, int pidx)
GVTFontFamilygetFontFamily(BridgeContext ctx)
Returns the font associated with this rule or element.
static ObjectgetSrcValue(Value v, ParsedURL base)
static StringgetStringProp(StyleMap sm, CSSEngine eng, int pidx)

Constructor Detail

CSSFontFace

public CSSFontFace(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 CSSFontFace with the specfied font-face attributes.

CSSFontFace

protected CSSFontFace(String familyName)

Method Detail

createCSSFontFace

public static CSSFontFace createCSSFontFace(CSSEngine eng, FontFaceRule ffr)

getFloatProp

public static float getFloatProp(StyleMap sm, CSSEngine eng, int pidx)

getFontFamily

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

getSrcValue

public static Object getSrcValue(Value v, ParsedURL base)

getStringProp

public static String getStringProp(StyleMap sm, CSSEngine eng, int pidx)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.