How do I underline text using FDPF in PHP?

旧巷老猫 提交于 2019-12-18 07:44:45

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/13598384/how-do-i-underline-text-using-fdpf-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!