From c13bfe75e82a71ac7436df1cad5b10b678d5bc95 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 29 Oct 2019 18:16:14 +0000 Subject: Fix SetTextRenderingMode to follow spec correctly, and add missing modes to const --- def.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'def.go') diff --git a/def.go b/def.go index 9a9758c..8b90244 100644 --- a/def.go +++ b/def.go @@ -123,14 +123,18 @@ const ( TextRenderingModeFill = 0 // TextRenderingModeStroke strokes text TextRenderingModeStroke = 1 - // TextRenderingModeFillThenStroke fills then strokes text - TextRenderingModeFillThenStroke = 2 + // TextRenderingModeFillStroke fills then strokes text + TextRenderingModeFillStroke = 2 // TextRenderingModeInvisible neither fills nor strokes text TextRenderingModeInvisible = 3 // TextRenderingFillClip fills text and add to path for clipping TextRenderingModeFillClip = 4 // TextRenderingFillClip strokes text and add to path for clipping TextRenderingModeStrokeClip = 5 + // TextRenderingModeFillStrokeClip fills then strokes text and add to path for clipping + TextRenderingModeFillStrokeClip = 6 + // TextRenderingModeClip Adds text to path for clipping + TextRenderingModeClip = 7 ) type colorMode int -- cgit v1.2.1-24-ge1ad