Improve appearance of stroked knockout text.

This commit is contained in:
Jeff Young 2023-05-26 19:53:38 +01:00
parent cb53a18ee3
commit ff37ebe61a
1 changed files with 2 additions and 1 deletions

View File

@ -49,8 +49,9 @@ void CALLBACK_GAL::DrawGlyph( const KIFONT::GLYPH& aGlyph, int aNth, int aTotal
int strokeWidth = GetLineWidth(); int strokeWidth = GetLineWidth();
SHAPE_POLY_SET poly; SHAPE_POLY_SET poly;
// Use ERROR_INSIDE because it avoids Clipper and is therefore much faster.
TransformOvalToPolygon( poly, pointList[ ii - 1 ], pointList[ ii ], TransformOvalToPolygon( poly, pointList[ ii - 1 ], pointList[ ii ],
strokeWidth, strokeWidth / 48, ERROR_OUTSIDE ); strokeWidth, strokeWidth / 180, ERROR_INSIDE );
m_outlineCallback( poly.Outline( 0 ) ); m_outlineCallback( poly.Outline( 0 ) );
} }