From 05cfdd39070dc925c340252affe3ce80c4a36b15 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 7 Jan 2022 21:44:34 +0000 Subject: [PATCH] Supply a text size & thickness for GAL::StrokeText Fixes https://gitlab.com/kicad/code/kicad/issues/10226 --- common/gal/graphics_abstraction_layer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/gal/graphics_abstraction_layer.cpp b/common/gal/graphics_abstraction_layer.cpp index e7c71ebfa1..308e880c2e 100644 --- a/common/gal/graphics_abstraction_layer.cpp +++ b/common/gal/graphics_abstraction_layer.cpp @@ -274,6 +274,8 @@ void GAL::StrokeText( const wxString& aText, const VECTOR2D& aPosition, double a attributes.m_Halign = GetHorizontalJustify(); attributes.m_Valign = GetVerticalJustify(); attributes.m_LineSpacing = aLineSpacing; + attributes.m_Size = GetGlyphSize(); + attributes.m_StrokeWidth = GetLineWidth(); aFont->Draw( this, aText, aPosition, attributes ); }