diff --git a/ClosedXML/Utils/GraphicsUtils.cs b/ClosedXML/Utils/GraphicsUtils.cs index be2472f..3af3d33 100644 --- a/ClosedXML/Utils/GraphicsUtils.cs +++ b/ClosedXML/Utils/GraphicsUtils.cs @@ -20,9 +20,10 @@ } } + private static StringFormat defaultStringFormat = StringFormat.GenericTypographic; public static SizeF MeasureString(string s, Font font) { - SizeF result = Graphics.MeasureString(s, font, Int32.MaxValue, StringFormat.GenericTypographic); + SizeF result = Graphics.MeasureString(s, font, Int32.MaxValue, defaultStringFormat); return result; } }