Irakli Gabisonia
Irakli Gabisonia

Reputation: 849

utf-8 characters in imagestring() function

I have problem with UTF-8 characters in imagestring() function, i'm trying to write these chacters "აბგდევზ" on image. imagestring($img,5,15,22,"აბგდევზ",$cor);

any idea?

enter image description here

Upvotes: 3

Views: 3822

Answers (1)

user5166265
user5166265

Reputation:

The function imagestring() doesn't support UTF-8 characters. If you need support for those, you need to use imagettftext(), which supports UTF-8, but needs to be linked to a TrueType font.

Here is the documentation for the function: http://php.net/manual/en/function.imagettftext.php

Upvotes: 7

Related Questions