Accented characters not showing when using imagettftext with otf but showing with ttf

前端 未结 2 1805
长情又很酷
长情又很酷 2021-01-23 09:39

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

2条回答
  •  青春惊慌失措
    2021-01-23 10:25

    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.

提交回复
热议问题