summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go5
1 files changed, 5 insertions, 0 deletions
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.
//