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 --- fpdf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 290fffb..80e621d 100644 --- a/fpdf.go +++ b/fpdf.go @@ -2229,7 +2229,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)) + f.out(sprintf("%d Tr", mode)) } // SetAcceptPageBreakFunc allows the application to control where page breaks -- cgit v1.2.1-24-ge1ad