From a524c773bfbca88158745b818a660eedaf536e1f Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 29 Oct 2019 17:23:39 +0000 Subject: Add TextRenderingMode* consts for different inputs for SetTextRenderingMode --- def.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'def.go') diff --git a/def.go b/def.go index 8e2bea5..9a9758c 100644 --- a/def.go +++ b/def.go @@ -116,6 +116,23 @@ const ( AlignBaseline = "B" ) +// TextRenderingModes for the SetTextRenderingMode() function, as +// defined in section 9.3.6 of the PDF specification. +const ( + // TextRenderingModeFill fills text + TextRenderingModeFill = 0 + // TextRenderingModeStroke strokes text + TextRenderingModeStroke = 1 + // TextRenderingModeFillThenStroke fills then strokes text + TextRenderingModeFillThenStroke = 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 +) + type colorMode int const ( -- cgit v1.2.1-24-ge1ad