super(familyName);
}
public static CSSFontFace createCSSFontFace(CSSEngine eng,
FontFaceRule ffr) {
StyleMap sm = ffr.getStyleMap();
String familyName = getStringProp
(sm, eng, SVGCSSEngine.FONT_FAMILY_INDEX);
CSSFontFace ret = new CSSFontFace(familyName);
Value v;
v = sm.getValue(SVGCSSEngine.FONT_WEIGHT_INDEX);
if (v != null)
ret.fontWeight = v.getCssText();
v = sm.getValue(SVGCSSEngine.FONT_STYLE_INDEX);
if (v != null)
ret.fontStyle = v.getCssText();
v = sm.getValue(SVGCSSEngine.FONT_VARIANT_INDEX);
if (v != null)
ret.fontVariant = v.getCssText();
v = sm.getValue(SVGCSSEngine.FONT_STRETCH_INDEX);
if (v != null)
ret.fontStretch = v.getCssText();
v = sm.getValue(SVGCSSEngine.SRC_INDEX);
ParsedURL base = ffr.getURL();
if ((v != null) && (v != ValueConstants.NONE_VALUE)) {
if (v.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) {
ret.srcs = new LinkedList();