How to underline text using FDPF in PHP?

I am trying to emphasize text in FPDF , but this seems impossible ... I do not use HTML. I am using the unicode font DejaVu , which supports UTF-8, as well as its first time when I work with FPDF.

Is it possible? Please give me some solutions.

+6
source share
1 answer

Try the following:

 $fpdf->SetFont('Dejavu','U'); //Where "U" means underline. 

See also (in German) http://www.fpdf.de/funktionsreferenz/?funktion=SetFont

See also (in English) http://www.fpdf.org/en/doc/setfont.htm

+5
source

All Articles