On 2018-11-22 17:22:24, philiprbrenan@gmail.com wrote:
Show quoted text> Hi *Slaven*:
>
> perl -MTk::Config -E 'say $Tk::Config::xlib' -I/usr/lib/x86_64-linux-gnu
> -lXft
> -L/usr/lib/x86_64-linux-gnu
>
> cat /proc/version
> Linux version 4.15.0-33-generic (buildd@lcy01-amd64-024) (gcc version 7.3.0
> (Ubuntu 7.3.0-16ubuntu3)) #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018
>
> This is on Kubuntu 18.04.
>
Then maybe missing fonts? If I execute the script using strace like this:
strace -eopen,openat perl test.pl |& grep fonts
then at the end two files looking like font files are listed:
openat(AT_FDCWD, "/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf", O_RDONLY) = 4
openat(AT_FDCWD, "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", O_RDONLY) = 4
Can you try this on your system? What files are listed there?
Regards,
Slaven
Show quoted text>
> On Thu, Nov 22, 2018 at 10:02 PM Slaven_Rezic via RT <bug-Tk@rt.cpan.org>
> wrote:
>
> > <URL:
https://rt.cpan.org/Ticket/Display.html?id=127786 >
> >
> > On 2018-11-22 16:55:07, SREZIC wrote:
> > > On 2018-11-22 16:07:35, philiprbrenan@gmail.com wrote:
> > > > I get:
> > > >
> > > > UCS-2BE:code point "\x{1d771}" too high at
> > > > /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk/Widget.pm line 205.
> > > >
> > > > from:
> > > >
> > > > use strict;
> > > > use utf8;
> > > > use Tk;
> > > > my $mw = MainWindow->new;
> > > > $mw->Label (-text=>'𝝰 𝝱 𝝲')->pack;
> > > > $mw->Button(-text=>'𝝰 𝝱 𝝲', -command=>sub {exit})->pack;
> > > > MainLoop;
> > > >
> > >
> > > Which Linux and which Tk version? Your script runs fine on my
> > > Debian/jessie system, either with the system perl (Tk 804.032) or with
> > > a self-compiled 5.26.1 (Tk 804.034).
> >
> > Another idea: grepping through the code shows lines where ucs-2be is
> > mapped to iso10646-1. I remember the latter being a popular encoding for
> > some (old) X11 fonts. So probably it's a font issue --- maybe your Tk was
> > compiled without XFT=1 (e.g. because libxft etc. was not available), or
> > maybe there are no true type fonts available. If XFT support is available
> > can be shown with the following oneliner:
> >
> > $ perl -MTk::Config -E 'say $Tk::Config::xlib'
> > -L/usr/lib/x86_64-linux-gnu -lXft
> >
> > Regards,
> > Slaven
> >
> >
>