From ff37ebe61a4d411eb6d656a84fdff15d32ede57a Mon Sep 17 00:00:00 2001 From: Jeff Young <jeff@rokeby.ie> Date: Fri, 26 May 2023 19:53:38 +0100 Subject: [PATCH] Improve appearance of stroked knockout text. --- common/callback_gal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/callback_gal.cpp b/common/callback_gal.cpp index c33f7e9369..9441d3edf6 100644 --- a/common/callback_gal.cpp +++ b/common/callback_gal.cpp @@ -49,8 +49,9 @@ void CALLBACK_GAL::DrawGlyph( const KIFONT::GLYPH& aGlyph, int aNth, int aTotal int strokeWidth = GetLineWidth(); SHAPE_POLY_SET poly; + // Use ERROR_INSIDE because it avoids Clipper and is therefore much faster. TransformOvalToPolygon( poly, pointList[ ii - 1 ], pointList[ ii ], - strokeWidth, strokeWidth / 48, ERROR_OUTSIDE ); + strokeWidth, strokeWidth / 180, ERROR_INSIDE ); m_outlineCallback( poly.Outline( 0 ) ); }