Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Funny fonts in ActivePerl under Linux

by jowe (Acolyte)
on Mar 05, 2013 at 13:01 UTC ( #1021821=note: print w/ replies, xml ) Need Help??

in reply to Funny fonts in ActivePerl under Linux

Sorry guys,

I forgot to mention, that I'm talking about a Tk script and let's forget about packaging using PerlApp, which was just clouding the issue. The script itself does not make use of any inside '-font' declaration at all. Perl is called
perl <script-name> -font "<choosen font>"
And as I mentioned, this works fine with any choosen font under Windows ActivePerl as well as under the 'native' Linux-supplied Perl. The problem is in the Linux ActivePerl distribution. Whatever font I choose, it looks ugly. Is there any additional 'use' or an environment variable required?
Again sorry, to waste your valuable time.
Best regards - jowe

Comment on Re: Funny fonts in ActivePerl under Linux
Replies are listed 'Best First'.
Re^2: Funny fonts in ActivePerl under Linux
by marto (Bishop) on Mar 05, 2013 at 13:21 UTC

    So, it's fine with Perl which ships with your distribution, but not ActiveState Perl on the same machine. My initial suspicion is that this is due to how the Tk has been built by ActiveState. README:

    By default Perl/Tk makes use of client side fonts via freetype2, fontconfig and Xft on Unix systems. This gives anti-aliased fonts for regular text (if you have TrueType or Type1 fonts and they are in your fontconfig config file). See also . To disable this feature run the Makefile.PL with "perl Makefile.PL XFT=0".

    Perhaps you need to do some digging in order to find out the differences between distributions. Out of curiosity is there a specific reason you're using ActiveState Perl on Linux?

      The idea was to develop under Windows using ActivePerl and just cross-package the final result to Linux without any major effort. But after diving into it, the reality looks somehow different.
      The answer may be: Using ActivePerl with PerlApp under Windows and distribution-supplied Perl with PAR::Packer (pp) under Linux.
      Thanks for your help.

        I agree with your proposed solution, if you're packaging for different platforms, while requiring some more work on your part I think the results will be more favorable.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021821]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-10-10 19:55 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (258 votes), past polls