diff options
author | Kurt <kurt.w.jung@gmail.com> | 2019-02-21 11:32:27 -0500 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2019-02-21 11:32:27 -0500 |
commit | 567bef933d5649777a8b39772ad57dc9ddaba8d8 (patch) | |
tree | 17dd2d4be0bf0538d5d770fac31334eed1c34ce7 | |
parent | d0584cb180f1316776ad59421ceed4c02f47e104 (diff) |
Acknowledge word spacing author
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | doc.go | 3 | ||||
-rw-r--r-- | fpdf.go | 3 |
3 files changed, 7 insertions, 4 deletions
@@ -59,7 +59,7 @@ go get -u -v github.com/jung-kurt/gofpdf/... The following Go code generates a simple PDF file. -```go +``` pdf := gofpdf.New("P", "mm", "A4", "") pdf.AddPage() pdf.SetFont("Arial", "B", 16) @@ -224,7 +224,8 @@ of contents functionality. Andy Bakun identified and corrected a problem in which the internal catalogs were not sorted stably. Paul Montag added encoding and decoding functionality for templates, including images that are embedded in templates; this allows templates to be stored independently of gofpdf. Paul -also added support for page boxes used in printing PDF documents. +also added support for page boxes used in printing PDF documents. Wojciech +Matusiak added supported for word spacing. ## Roadmap @@ -238,7 +238,8 @@ of contents functionality. Andy Bakun identified and corrected a problem in which the internal catalogs were not sorted stably. Paul Montag added encoding and decoding functionality for templates, including images that are embedded in templates; this allows templates to be stored independently of gofpdf. Paul -also added support for page boxes used in printing PDF documents. +also added support for page boxes used in printing PDF documents. Wojciech +Matusiak added supported for word spacing. Roadmap @@ -1897,7 +1897,8 @@ func (f *Fpdf) Text(x, y float64, txtStr string) { f.out(s) } -// SetWordSpacing sets spacing between words of following text +// SetWordSpacing sets spacing between words of following text. See the +// WriteAligned() example for a demonstration of its use. func (f *Fpdf) SetWordSpacing(space float64) { f.out(sprintf("%.5f Tw", space*f.k)) } |