Hello!

I've been trying to learn Tk by making a little retro game, and now I'm starting to feel like it finally doesn't look terrible. But one thing still does: the fonts. I can't figure out how to get the ordinary system fonts to work, and the built-in fonts are all so badly pixellated they look awkward even for my 90s-style game.

I'm using ActivePerl 5.20, on a Macbook Pro from 2015. I think part of the reason is the "Retina display"; if I understand it right, the latest high-res mac screens are basically pretending to be a much lower resolution, so that old programs won't look tiny, but they also don't benefit from the increased resolution. This affects all my Tk programs, effectively making the resolution a fraction of what it could be, which is of course pretty annoying generally. But there has to be some other reason the fonts look so awful. They also don't seem to be using any anti-aliasing; that could be part of the reason.

So I'd like to:

if anyone could help me with any of those. Thanks!


In reply to Tk, fonts and resolution by Chuma

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.