From 47e0be494d372328c78072f4f2db0f8a1b96d760 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 29 Oct 2019 17:08:31 +0000 Subject: Add SetTextRenderingMode function This is set out in section 9.3.6 of the PDF32000_2008 specification. At present the function takes a number, the meaning of which is laid out in the spec as follows: 0: Fill text 1: Stroke text 2: Fill, then stroke text 3: Neither fill nor stroke text (invisible) 4: Fill text and add to path for clipping 5: Stroke text and add to path for clipping --- fpdf.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fpdf.go b/fpdf.go index cc47d16..aff0759 100644 --- a/fpdf.go +++ b/fpdf.go @@ -2226,6 +2226,11 @@ func (f *Fpdf) SetWordSpacing(space float64) { f.out(sprintf("%.5f Tw", space*f.k)) } +// SetTextRenderingMode sets the rendering mode of following text. +func (f *Fpdf) SetTextRenderingMode(mode int) { + f.out(sprintf("%d Tmode", 0)) +} + // SetAcceptPageBreakFunc allows the application to control where page breaks // occur. // -- cgit v1.2.1-24-ge1ad