当前位置:网站首页>[there may be no default font]warning: imagettfbbox() [function.imagettfbbox]: invalid font filename
[there may be no default font]warning: imagettfbbox() [function.imagettfbbox]: invalid font filename
2022-07-05 11:09:00 【Full stack programmer webmaster】
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename…
[ There may not be a default font ]
example :
//putenv('GDFONTPATH=C:\WINDOWS\Fonts');
$font = "Arial";
$size = 12;
$im = ImageCreateFromPNG("top_logo.png");
$tsize= imagettfbbox($size, 0, $font, $_GET['message']);
Change to :
//putenv('GDFONTPATH=C:\WINDOWS\Fonts');
$font = "c:/windows/fonts/arial.ttf";
$size = 12;
$im = ImageCreateFromPNG("top_logo.png");
$tsize= imagettfbbox($size, 0, $font, $_GET['message']);
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/109998.html Link to the original text :https://javaforall.cn
边栏推荐
- [JS] extract the scores in the string, calculate the average score after summarizing, compare with each score, and output
- SQL Server monitoring statistics blocking script information
- sklearn模型整理
- 九、磁盘管理
- How to make full-color LED display more energy-saving and environmental protection
- vite//
- DDR4硬件原理图设计详解
- Repair animation 1K to 8K
- [JS learning notes 54] BFC mode
- Advanced scaffold development
猜你喜欢
DDR4硬件原理图设计详解
Based on shengteng AI Aibi intelligence, we launched a digital solution for bank outlets to achieve full digital coverage of information from headquarters to outlets
How to make full-color LED display more energy-saving and environmental protection
Ddrx addressing principle
[advertising system] incremental training & feature access / feature elimination
Web3 Foundation grant program empowers developers to review four successful projects
About the use of Vray 5.2 (self research notes)
如何让全彩LED显示屏更加节能环保
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
Do you really understand the things about "prototype"? [part I]
随机推荐
Three paradigms of database
[JS] extract the scores in the string, calculate the average score after summarizing, compare with each score, and output
Buried point 111
R3live series learning (IV) r2live source code reading (2)
C language current savings account management system
Do you really understand the things about "prototype"? [part I]
websocket
Go-2-Vim IDE常用功能
华为设备配置信道切换业务不中断
使用bat命令一键启动常用浏览器
MFC pet store information management system
R3Live系列学习(四)R2Live源码阅读(2)
基础篇——基础项目解析
Operators
How can gbase 8C database view the login information of the login user, such as the date, time and IP of the last login authentication?
Paradigm in database: first paradigm, second paradigm, third paradigm
2021 Shandong provincial competition question bank topic capture
Function///
Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
关于vray 5.2的使用(自研笔记)