private float _getComputedFontSize()
{
string str = GetPropertyValue("font-size");
float fontSize = 12;
if(str.EndsWith("%"))
{
// percentage of inherited value
}
else if(new Regex(@"^\d").IsMatch(str))
{
// svg length
fontSize = (float)new SvgLength(this, "font-size", SvgLengthDirection.Viewport, str, "10px").Value;
}
else if(str == "larger")
{
}
else if(str == "smaller")
{
}
else
{
// check for absolute value
}
return fontSize;
}