Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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
Re^2: Funny fonts in ActivePerl under Linux
by marto (Chancellor) 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 http://fontconfig.org . 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-10-25 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls