Subject: | Can't use stringFT with 4-byte unicode characters |
Date: | Mon, 18 Nov 2013 22:25:46 +0000 |
To: | "bug-GD [...] rt.cpan.org" <bug-gd [...] rt.cpan.org> |
From: | J K <ecudvd [...] hotmail.com> |
perl v5.12.4
perl-GD v. 2.45
Mac OS X 10.8.5
I have been using stringFT without problems with various TTF fonts. That is until I needed to print 4-byte characters (i.e. \x{10000} and above). Regardless of the font and the actual codepoint I am trying to render, statements like:
$Image->stringTTF($white,$font,$fontsize,0,$x,$y,"\x{11136}");
are not successful, instead they render 4 strange characters per intended letter, like not recognizing the utf8 encoding. I tried things like passing UTF-16/32 strings etc, which I did not really expect to work and did not. Is it a problem with my configuration, or perl-GD cannot successfully pass 4-byte utf8 to libGD?