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

Commit

Permalink
Acknowledge word spacing author
Browse files Browse the repository at this point in the history
  • Loading branch information
jung-kurt committed Feb 21, 2019
1 parent d0584cb commit 567bef9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion fpdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 567bef9

Please sign in to comment.