GetFloatAttribute
BPoint c(GetFloatAttribute(attributes, "cx"), GetFloatAttribute(attributes, "cy"));
float rx = GetFloatAttribute(attributes, "rx");
float ry = GetFloatAttribute(attributes, "ry");
BPoint topLeft(GetFloatAttribute(attributes, "x"), GetFloatAttribute(attributes, "y"));
BPoint bottomRight(topLeft.x + GetFloatAttribute(attributes, "width"),
topLeft.y + GetFloatAttribute(attributes, "height"));
BPoint from(GetFloatAttribute(attributes, "x1"), GetFloatAttribute(attributes, "y1"));
BPoint to(GetFloatAttribute(attributes, "x2"), GetFloatAttribute(attributes, "y2"));
points[0].x = points[3].x = GetFloatAttribute(attributes, "x");
points[0].y= points[1].y = GetFloatAttribute(attributes, "y");
points[1].x = points[2].x = points[0].x + GetFloatAttribute(attributes, "width");
points[2].y = points[3].y = points[0].y + GetFloatAttribute(attributes, "height");
fTextPosition.Set(GetFloatAttribute(attributes, "x"), GetFloatAttribute(attributes, "y"));
float opacity = GetFloatAttribute(attributes, "opacity");
fState.fStrokeColor.alpha = (uint8)(GetFloatAttribute(attributes, "stroke-opacity") * alpha);
fState.fFillColor.alpha = (uint8)(GetFloatAttribute(attributes, "fill-opacity") * alpha);
fState.fStrokeWidth = GetFloatAttribute(attributes, "stroke-width");
fState.fLineMiterLimit = GetFloatAttribute(attributes, "stroke-miterlimit");
fState.fFontSize = GetFloatAttribute(attributes, "font-size");
BPoint c(GetFloatAttribute(attributes, "cx"), GetFloatAttribute(attributes, "cy"));
float r = GetFloatAttribute(attributes, "r");
float GetFloatAttribute(const XML_Char **attributes, const char *name);