diff options
author | Nick White <git@njw.name> | 2019-10-29 17:08:31 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-10-29 17:08:31 +0000 |
commit | 47e0be494d372328c78072f4f2db0f8a1b96d760 (patch) | |
tree | b86cd39dae324766c307b883a5c4eab1c87def28 | |
parent | 9b6b7f4e784dd67fac27ae8fd4aea38136afa1c5 (diff) |
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
-rw-r--r-- | fpdf.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. // |