7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 18:19:17 +00:00

Stroke, don't fill fonts in preview

Fixed new vector-style font display to avoid the non-closed polyline
fills that make it hard to read the proper text

Fixes https://gitlab.com/kicad/code/kicad/issues/11781
This commit is contained in:
Seth Hillbrand 2022-07-15 11:52:29 -07:00
parent c8a383a48e
commit bed38d2fc8

View File

@ -157,6 +157,8 @@ void KIGFX::PREVIEW::DrawTextNextToCursor( KIGFX::VIEW* aView, const VECTOR2D& a
textAttrs.m_Mirrored = viewFlipped; // Prevent text flipping when view is flipped
textAttrs.m_Size = textDims.GlyphSize;
textAttrs.m_StrokeWidth = textDims.StrokeWidth;
gal->SetIsFill( false );
gal->SetIsStroke( true );
if( aDrawingDropShadows )
{