From a7a24eda9100ddb1269fdfb0fe372ee54d74a5ce Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 27 Oct 2020 19:49:08 +0000 Subject: [PATCH] B2020-145 Replace the {size} token in the Base format with 10. This is in points. --- PROMS/Volian.Svg.Library/SvgMeasurement.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/PROMS/Volian.Svg.Library/SvgMeasurement.cs b/PROMS/Volian.Svg.Library/SvgMeasurement.cs index 4f5df19b..e953cf6e 100644 --- a/PROMS/Volian.Svg.Library/SvgMeasurement.cs +++ b/PROMS/Volian.Svg.Library/SvgMeasurement.cs @@ -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)