gpt4 book ai didi

php - 如何在 PHP 中使用 FDPF 为文本添加下划线?

转载 作者:可可西里 更新时间:2023-11-01 12:35:00 25 4
gpt4 key购买 nike

我试图在 FPDF 中为我的文本加下划线,但这似乎是不可能的……我没有使用 HTML。我使用的是 DejaVu unicode 字体,它支持 UTF-8,这也是我第一次使用 FPDF。

这可能吗?请给我一些解决方案。

最佳答案

试试这个:

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

另见(德语)http://www.fpdf.de/funktionsreferenz/?funktion=SetFont

另见(英文)http://www.fpdf.org/en/doc/setfont.htm

关于php - 如何在 PHP 中使用 FDPF 为文本添加下划线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13598384/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com