From 70bcf87095fae0f64f97be2fca8fb6083fd1c48f Mon Sep 17 00:00:00 2001 From: LyGoeAbb Date: Fri, 22 May 2026 10:27:18 +0200 Subject: [PATCH] Correct the Font Weights in SVG Replaced occurances of : ("font-weight", "regular"); by ("font-weight", "regular"); --- VectSharp.SVG/SVGContext.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VectSharp.SVG/SVGContext.cs b/VectSharp.SVG/SVGContext.cs index 24c32573..0a39ceb0 100644 --- a/VectSharp.SVG/SVGContext.cs +++ b/VectSharp.SVG/SVGContext.cs @@ -675,7 +675,7 @@ public void FillText(string text, double x, double y) } else { - textElement.SetAttribute("font-weight", "regular"); + textElement.SetAttribute("font-weight", "normal"); } if (Font.FontFamily.IsItalic) @@ -721,7 +721,7 @@ public void FillText(string text, double x, double y) } else { - style.Add("font-weight", "regular"); + style.Add("font-weight", "normal"); } if (Font.FontFamily.IsItalic) @@ -1330,7 +1330,7 @@ public void StrokeText(string text, double x, double y) } else { - textElement.SetAttribute("font-weight", "regular"); + textElement.SetAttribute("font-weight", "normal"); } if (Font.FontFamily.IsItalic) @@ -1430,7 +1430,7 @@ public void StrokeText(string text, double x, double y) } else { - style.Add("font-weight", "regular"); + style.Add("font-weight", "normal"); } if (Font.FontFamily.IsItalic)