diff options
author | Wojciech Matusiak <wmatusiak@gmail.com> | 2019-02-21 02:25:10 +0100 |
---|---|---|
committer | Wojciech Matusiak <wmatusiak@gmail.com> | 2019-02-21 02:25:10 +0100 |
commit | 6a80039fd927b21892b75a206d8a36cccb60dd37 (patch) | |
tree | a35f7fdbadc39eb440667a052da75eff87f8a3b7 | |
parent | 5e8bff406205400b6d067dc6d96666dedc2cf32a (diff) |
Adds the ability to set word spacing.
-rw-r--r-- | fpdf.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. // |