From 8f080922446313698730071fd92ca15900e6a941 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 10 May 2019 17:47:17 -0400 Subject: Add SplitText() method for splitting utf-8 strings constrained by rendered width --- fpdf.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 7bee6e5..d3366ce 100644 --- a/fpdf.go +++ b/fpdf.go @@ -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 { -- cgit v1.2.1-24-ge1ad