summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Matusiak <wmatusiak@gmail.com>2019-02-21 16:10:33 +0100
committerWojciech Matusiak <wmatusiak@gmail.com>2019-02-21 16:10:33 +0100
commit6b86862c2bf56008b1c08cce71a8604b2e11e0cf (patch)
treebea0c3be6bb96f225700db6b3ae3e6254ea88c6c
parent6a80039fd927b21892b75a206d8a36cccb60dd37 (diff)
Match precision of word spacing with rest of code.
-rw-r--r--fpdf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index 3f4c1a3..8376f9c 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -1899,7 +1899,7 @@ func (f *Fpdf) Text(x, y float64, txtStr string) {
// SetWordSpacing sets spacing between words of following text
func (f *Fpdf) SetWordSpacing(space float64) {
- f.out(sprintf("%.3f Tw", space*f.k))
+ f.out(sprintf("%.5f Tw", space*f.k))
}
// SetAcceptPageBreakFunc allows the application to control where page breaks