Tue Nov 29 13:03:43 2016: Request 119022 was acted upon.
Transaction: Correspondence added by PRBRENAN
Queue: Wx
Subject: DrawText of unicode string
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=119022 >
Success! Thanks!
use utf8;
$g->DrawText("𝝰𝝱𝝲𝝱𝝰", 400, 450);
produces the attached.
On Mon Nov 28 15:41:00 2016, PRBRENAN wrote:
> As can be seen in the attached screen shot, the DrawText of "Hello"
> works as expected but not "𝝰𝝱𝝲𝝱𝝰".
>
> my $f = Wx::Font->new("Noto Mono 24");
> my $g = Wx::PaintDC->new($panel);
> $g->SetFont($font);
> $g->DrawText("Hello", 400, 400);
> $g->DrawText("𝝰𝝱𝝲𝝱𝝰", 400, 450);
>
> I have tried various fonts (including the default) as well as various
> encodings all with similar (or worse) results.
>
> uname -a
> 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64
> x86_64 x86_64 GNU/Linux
> perl -v
> v5.22.1
>
> Thanks for your help!