当用otf使用imagettftext,但用ttf显示时,重音字符不显示 [英] Accented characters not showing when using imagettftext with otf but showing with ttf
问题描述
我使用imagettftext从OpenType文件生成图像。一切工作,直到我尝试使用重音字符(例如å)或字符如√。在他们的地方,我得到了.notdef字形。
我使用的字体一定有这些字符。为了让事情变得更加令人沮丧,当我使用TTF时,一切都如预期的那样顺利。
有什么想法? p
谢谢
很抱歉告诉你,但是PHP OTF只支持标准的Ascii字符。这是一个众所周知的事实,OTF中的特殊字符很少工作。恐怕你必须坚持TTF,直到他们改正。
I'm using imagettftext to generate images from OpenType files. Everything works until I try to use an accented character (e.g. å) or a character such as √. In their place I get the .notdef glyph.
The fonts I'm using definitely have these characters. To make things even more frustrating, when I use a TTF everything works as expected.
Any ideas?
Thanks
Sorry to tell you, but PHP OTF supports only standard Ascii characters. It's a well known fact that special characters in OTF only very rarely work. I'm afraid you will have to stick with TTF until they correct that.
这篇关于当用otf使用imagettftext,但用ttf显示时,重音字符不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!