diff options
author | Nick White <git@njw.name> | 2019-10-29 17:23:39 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-10-29 17:23:39 +0000 |
commit | a524c773bfbca88158745b818a660eedaf536e1f (patch) | |
tree | 5ada765b757a6fc17a0e331ca0299dc85d542e5c | |
parent | 47e0be494d372328c78072f4f2db0f8a1b96d760 (diff) |
Add TextRenderingMode* consts for different inputs for SetTextRenderingMode
-rw-r--r-- | def.go | 17 | ||||
-rw-r--r-- | fpdf.go | 1 |
2 files changed, 18 insertions, 0 deletions
@@ -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 ( @@ -2227,6 +2227,7 @@ func (f *Fpdf) SetWordSpacing(space float64) { } // SetTextRenderingMode sets the rendering mode of following text. +// See the TextRenderingMode* const definitions for modes. func (f *Fpdf) SetTextRenderingMode(mode int) { f.out(sprintf("%d Tmode", 0)) } |