9

I'm trying to make my text underlined in FPDF but it seems to be impossible... I'm not using HTML. I'm using an DejaVu unicode font, which supports UTF-8, and also its my first time working with the FPDF.

Is that even possible? Please give me some solutions.

Andy Lester
  • 91,102
  • 13
  • 100
  • 152
Scott
  • 5,991
  • 15
  • 35
  • 42

1 Answers1

9

Try this :

$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

fehrlich
  • 2,497
  • 2
  • 26
  • 44
Thomas Lauria
  • 858
  • 1
  • 7
  • 15