Float fs = TextUtilities.convertFontSize(element);
result.put(TextAttribute.SIZE, fs);
// Font weight
Float fw = TextUtilities.convertFontWeight(element);
Value v = CSSUtilities.getComputedStyle
(element, SVGCSSEngine.FONT_WEIGHT_INDEX);
String fontWeightString = v.getCssText();
result.put(TextAttribute.WEIGHT, fw);
// Font style
String fontStyleString = CSSUtilities.getComputedStyle
(element, SVGCSSEngine.FONT_STYLE_INDEX).getStringValue();
result.put(TextAttribute.POSTURE,
TextUtilities.convertFontStyle(element));
// Font stretch
String fontStretchString = CSSUtilities.getComputedStyle
(element, SVGCSSEngine.FONT_STRETCH_INDEX).getStringValue();
result.put(TextAttribute.WIDTH,
TextUtilities.convertFontStretch(element));
// Font family
Value val = CSSUtilities.getComputedStyle
(element, SVGCSSEngine.FONT_FAMILY_INDEX);
// make a list of GVTFontFamily objects
List fontFamilyList = new Vector();
int len = val.getLength();
for (int i = 0; i < len; i++) {
Value it = val.item(i);
String fontFamilyName = it.getStringValue();
GVTFontFamily fontFamily
= SVGFontUtilities.getFontFamily(element, ctx, fontFamilyName,
fontWeightString, fontStyleString);
fontFamilyList.add(fontFamily);
}