Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
more useful options
 
PerlMonks  

perl/tk fonts

by vayde (Novice)
on Mar 06, 2006 at 19:33 UTC ( [id://534801]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

vayde has asked for the wisdom of the Perl Monks concerning the following question:

I am a newbie to perl/tk, and the fonts that are available to me appear to have horrible aliasing. All other fonts on the system seem to be fine (Gtk-perl, etc) How do I use antialias fonts under perl/tk?

Replies are listed 'Best First'.
Re: perl/tk fonts
by sanPerl (Friar) on Mar 07, 2006 at 02:04 UTC
    Just a suggestion, although may not directly relate to your question.
    We are checking if we could use Zooz for our Perl front-end development.
    Check it at your end it is interesting indeed...
Re: perl/tk fonts
by Courage (Parson) on Mar 07, 2006 at 03:02 UTC
    since font aliasing introduced in Tcl/Tk 8.5, you can use it with Tcl::Tk or Tkx modules from CPAN, which are, unlike perl/Tk, use Tk externally, thus allowing more modern and capable version to use.

    ... and font aliasing problem do not exists on Windows, where rendering goes a bit differently.

    Best regards,
    Courage, the Cowardly Dog

Re: perl/tk fonts
by msemtd (Scribe) on Mar 07, 2006 at 11:20 UTC
    The latest Tk from CPAN (Tk804.027) addresses this to some degree by using Xft, fontconfig and freetype2 to render fonts giving antialiasing for truetype fonts. Build with XFT=1.
    -- map & grep are our friends

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://534801]
Approved by Tanktalus
Front-paged by planetscape
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.