B2020-145 Replace the {size} token in the Base format with 10. This is in points.

This commit is contained in:
Rich 2020-10-27 19:49:08 +00:00
parent cab4b3eed3
commit a7a24eda91

View File

@ -72,6 +72,7 @@ namespace Volian.Svg.Library
}
public SvgMeasurement(string val)
{
val = val.Replace("{size}", "10");// B2020-145 BWD SAMG TSG-6 Fix for Base Format {size} parameter rather than font size
MatchCollection mc = Regex.Matches(val.ToLower(), "([+-]?[.0-9]+)|(in|cm|mm|em|ex|pc|pt|px|percentage)");
_Value = Convert.ToSingle(mc[0].Value);
if (mc.Count == 2)