in reply to Tk fonts and Fedora 13

The vendor's perl-Tk builds Tk with XFT. Specifically, it uses the XFT=1 option, something like:
%{perl} Makefile.PL INSTALLDIRS=vendor X11LIB=%{libdir} XFT=1
I'd try downloading Tk from CPAN and then manually install it:
perl Makefile.PL make make test make install_site

Replies are listed 'Best First'.
Re^2: Tk fonts and Fedora 13
by ron7 (Beadle) on Feb 06, 2011 at 00:00 UTC
    You've jogged my memory (it was a while ago). I had to cpan install Tk on both the fc9 and 13 boxes. In both acses, the install had to be "forced" due to the number of test case failures (though they run ok, except for the font issue on fc13). I'll try your suggestion of not using the cpan utility.

    Later: No change. The t/font.t said:

    t/font.t .................. 1/34 Font Courier -12 still in cache.
    
    I'll look into that, but don't think it's the problem. Will also try this test case on the working FC9 install for comparison.

    Even later still...

    On both the "working" Tk install (FC9) and "non-working" (FC13) install, the fonts.t test fails test 11 (Value of -size from fontActual (Times font).

    However the "working" font.t test exits with a segmentation fault after test 24 (Core dump check (especially for XFT)) while the "non-working" install continues to the end of the test program, skipping tests 14..23.

    Test 24 runs a test that causes a core dump with the Xft version of Perl/Tk, so it looks like the FC9 (working) version HAS XFT while the non-working one may not.

    To confuse matters more, running the application from the FC9 box over a SSH connection to the FC13 box, the font problem disappears. If I read this right, it suggests that the problem lies with the X font setup on the X server in question, not Tk itself (ie, when the app is run remotely, it's using the local perl modules, but talking with the X system on the machine running the ssh session).

    Listing the fonts (xlsfonts) gives about the same result on both machines. But the utility 'xfontsel' does no exist on the FC13 box (it is on the "working" FC9 machine), so I'm wondering if this is connected to the problem. Maybe some part of X has not been installed?

Re^2: Tk fonts and Fedora 13
by ron7 (Beadle) on Feb 07, 2011 at 08:08 UTC
    Some progress: Installing (yum) xorg-x11-fonts-Type1 on the FC13 box has the Tk apps actually displaying something different--not the same as the FC13 box as I'm getting a serif font instead of Helvetica as specified in the code, but looks like I'm heading in the right direction. Interestingly, the version yum installed was for FC12.

    So looks like Perl was not the culprit. With this on top of other things, I can really find nothing to recommend FC13 to developers.

    Last word on the subject FC13 was also missing the 100dpi x11 fonts. I did a standard install from the DVD adding the servers and programming environments. Looks like X11 fonts are no longer "standard". This release also lacks a DMI driver for the Intel chipset. Devs stay clear.