gofpdf icon indicating copy to clipboard operation
gofpdf copied to clipboard

Text format Bold and Underline within Single MultiCell Cell

Open bennsid opened this issue 5 years ago • 1 comments

Hi Jung-Kurt While using MultiCell. In a single cell, how do i get to Bold some text while other text is left not bold. Furthermore, how do i go about underlining some text while other text isn't underlined.

Your assistance would be highly appreciated

bennsid avatar Aug 07 '19 07:08 bennsid

Unfortunately, gofpdf supports only one font attribute in MultiCell(). You could try modifying the code in htmlbasic.go to achieve your objective. Call GetStringWidth() to calculate word spacing for text justification.

jung-kurt avatar Aug 07 '19 17:08 jung-kurt