From 6a80039fd927b21892b75a206d8a36cccb60dd37 Mon Sep 17 00:00:00 2001 From: Wojciech Matusiak Date: Thu, 21 Feb 2019 02:25:10 +0100 Subject: Adds the ability to set word spacing. --- fpdf.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index bc047b1..3f4c1a3 100644 --- a/fpdf.go +++ b/fpdf.go @@ -1897,6 +1897,11 @@ func (f *Fpdf) Text(x, y float64, txtStr string) { f.out(s) } +// SetWordSpacing sets spacing between words of following text +func (f *Fpdf) SetWordSpacing(space float64) { + f.out(sprintf("%.3f Tw", space*f.k)) +} + // SetAcceptPageBreakFunc allows the application to control where page breaks // occur. // -- cgit v1.2.1-24-ge1ad