Skip Menu |
 

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 90493
Status: rejected
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: ecudvd [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 677b
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?
Download (untitled) / with headers
text/plain 904b
On Mon Nov 18 17:25:59 2013, ecudvd@hotmail.com wrote: Show quoted text
> 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?
perl can, but libgd and the underlying libfreetype cannot. characters > \x{10000} are usually considered illegal. I'm afraid, not our bug. -- Reini Urban


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.