diff options
| author | Kurt <kurt.w.jung@gmail.com> | 2019-05-10 17:47:17 -0400 |
|---|---|---|
| committer | Kurt <kurt.w.jung@gmail.com> | 2019-05-10 17:47:17 -0400 |
| commit | 8f080922446313698730071fd92ca15900e6a941 (patch) | |
| tree | 32bc0736b68091bc1bbc2833a838057e6658ab60 /fpdf.go | |
| parent | 65c03ae855f64ff46c37f9d58ed572a302bd355d (diff) | |
Add SplitText() method for splitting utf-8 strings constrained by rendered width
Diffstat (limited to 'fpdf.go')
| -rw-r--r-- | fpdf.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2407,6 +2407,9 @@ func (f *Fpdf) Cellf(w, h float64, fmtStr string, args ...interface{}) { // used to determine the total height of wrapped text for vertical placement // purposes. // +// This method is useful for codepage-based fonts only. For UTF-8 encoded text, +// use SplitText(). +// // You can use MultiCell if you want to print a text on several lines in a // simple way. func (f *Fpdf) SplitLines(txt []byte, w float64) [][]byte { |
