当前位置:网站首页>[可能没有默认的字体]Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename……
[可能没有默认的字体]Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename……
2022-07-05 10:13:00 【全栈程序员站长】
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename…
[可能没有默认的字体]
例:
//putenv('GDFONTPATH=C:\WINDOWS\Fonts');
$font = "Arial";
$size = 12;
$im = ImageCreateFromPNG("top_logo.png");
$tsize= imagettfbbox($size, 0, $font, $_GET['message']);
改成:
//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']);
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/109998.html原文链接:https://javaforall.cn
边栏推荐
- Blockbuster: the domestic IDE is released, developed by Alibaba, and is completely open source!
- 如何判断线程池已经执行完所有任务了?
- RMS to EAP is simply implemented through mqtt
- @Serializedname annotation use
- 最全是一次I2C总结
- [论文阅读] CKAN: Collaborative Knowledge-aware Atentive Network for Recommender Systems
- AtCoder Beginner Contest 258「ABCDEFG」
- Today in history: the first e-book came out; The inventor of magnetic stripe card was born; The pioneer of handheld computer was born
- Qt实现json解析
- C语言实现QQ聊天室小项目 [完整源码]
猜你喜欢
Comparative learning in the period of "arms race"
@SerializedName注解使用
Window下线程与线程同步总结
Workmanager learning 1
How does redis implement multiple zones?
Uni app running to wechat development tool cannot Preview
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
To bring Euler's innovation to the world, SUSE should be the guide
驱动制造业产业升级新思路的领域知识网络,什么来头?
Workmanager Learning one
随机推荐
Atcoder beginer contest 254 "e BFS" f st table maintenance differential array GCD "
Events and bubbles in the applet of "wechat applet - Basics"
钉钉、企微、飞书学会赚钱了吗?
The Alipay in place function can't be found, and the Alipay in place function is offline
自动化规范检查软件如何发展而来?
Zblogphp breadcrumb navigation code
C语言实现QQ聊天室小项目 [完整源码]
C function returns multiple value methods
> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
《剑来》语句摘录(七)
AD20 制作 Logo
Tianlong Babu TLBB series - about items dropped from packages
StaticLayout的使用详解
@Serializedname annotation use
Write double click event
伪类元素--before和after
Interview: is bitmap pixel memory allocated in heap memory or native
vscode的快捷键
CSDN always jumps to other positions when editing articles_ CSDN sends articles without moving the mouse
C#函数返回多个值方法