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

前端 未结 2 1722
长情又很酷
长情又很酷 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:24

    Not true! (answer 1) imagettftext works with unicode. Some font files do not have accented characters but rely on the graphic library to use the unicode combining diacritical marks (0300–036F) to draw the character correctly. This seems to fail in php gd.

提交回复
热议问题