Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit 567bef9

Browse files
committed
Acknowledge word spacing author
1 parent d0584cb commit 567bef9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ go get -u -v github.com/jung-kurt/gofpdf/...
5959

6060
The following Go code generates a simple PDF file.
6161

62-
```go
62+
```
6363
pdf := gofpdf.New("P", "mm", "A4", "")
6464
pdf.AddPage()
6565
pdf.SetFont("Arial", "B", 16)
@@ -224,7 +224,8 @@ of contents functionality. Andy Bakun identified and corrected a problem in
224224
which the internal catalogs were not sorted stably. Paul Montag added encoding
225225
and decoding functionality for templates, including images that are embedded in
226226
templates; this allows templates to be stored independently of gofpdf. Paul
227-
also added support for page boxes used in printing PDF documents.
227+
also added support for page boxes used in printing PDF documents. Wojciech
228+
Matusiak added supported for word spacing.
228229

229230
## Roadmap
230231

doc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ of contents functionality. Andy Bakun identified and corrected a problem in
238238
which the internal catalogs were not sorted stably. Paul Montag added encoding
239239
and decoding functionality for templates, including images that are embedded in
240240
templates; this allows templates to be stored independently of gofpdf. Paul
241-
also added support for page boxes used in printing PDF documents.
241+
also added support for page boxes used in printing PDF documents. Wojciech
242+
Matusiak added supported for word spacing.
242243
243244
Roadmap
244245

fpdf.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,8 @@ func (f *Fpdf) Text(x, y float64, txtStr string) {
18971897
f.out(s)
18981898
}
18991899

1900-
// SetWordSpacing sets spacing between words of following text
1900+
// SetWordSpacing sets spacing between words of following text. See the
1901+
// WriteAligned() example for a demonstration of its use.
19011902
func (f *Fpdf) SetWordSpacing(space float64) {
19021903
f.out(sprintf("%.5f Tw", space*f.k))
19031904
}

0 commit comments

Comments
 (0)