当前位置:网站首页>[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
边栏推荐
猜你喜欢
9、 Disk management
Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
go语言学习笔记-初识Go语言
How to close the log window in vray5.2
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
Talk about the understanding of fault tolerance mechanism and state consistency in Flink framework
基于昇腾AI丨以萨技术推出视频图像全目标结构化解决方案,达到业界领先水平
Web3 Foundation grant program empowers developers to review four successful projects
Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
不要再说微服务可以解决一切问题了!
随机推荐
msfconsole命令大全,以及使用说明
7.2每日学习4
Web Security
关于vray 5.2的使用(自研笔记)
Go language-1-development environment configuration
九、磁盘管理
BOM//
Lazy loading scheme of pictures
Array
2022 t elevator repair operation certificate examination questions and answers
LSTM applied to MNIST dataset classification (compared with CNN)
PWA (Progressive Web App)
Implement the rising edge in C #, and simulate the PLC environment to verify the difference between if statement using the rising edge and not using the rising edge
go语言学习笔记-初识Go语言
Wechat nucleic acid detection appointment applet system graduation design completion (6) opening defense ppt
2021 Shandong provincial competition question bank topic capture
Function///
Taro advanced
基于昇腾AI丨爱笔智能推出银行网点数字化解决方案,实现从总部到网点的信息数字化全覆盖
Based on shengteng AI Yisa technology, it launched a full target structured solution for video images, reaching the industry-leading level