XP is just a number | |
PerlMonks |
Re: Tk, fonts and resolutionby Chuma (Scribe) |
on Dec 10, 2017 at 20:46 UTC ( [id://1205266]=note: print w/replies, xml ) | Need Help?? |
I've tested all the fonts, and it seems that some are more broken than others; as far as I can tell, some look like proportional fonts that are just using a lower resolution, whereas others don't scale up at all, so large font sizes end up using "pixels" the size of peas. As for other OSes, I haven't had a chance to test that – so far, I'm having enough trouble getting things to run on one system. But if anyone wants to try it on their system, this should be a working example:
In this case, 'lucidabright' is an example of the bad kind of font, whereas 'utopia' is a similar-looking font of the less bad kind. As I understand the discussion in the link, they're basically disabling the Retina thing to set the resolution higher. That would probably more or less solve the problem, although it would be a little inconvenient to have to change the resolution every time I run the program. I suppose there's some system command for doing that, too. Bit of a workaround, and of course the guy who says his screen died also doesn't inspire confidence. But I'll look into that. Someone else had similar problems in this thread. They didn't find any solution, and the OP says they eventually gave up using text and replaced it with pre-rendered images, but I'm hoping I won't have to do that. I also tried getting the modules "Img" and "tkpng", hoping they might help with the PNG issue, but frankly I can't figure out how to install them. One is a long list of "dylib" files, the other is the usual Unix mess with "configure" and "makefile", but running "make" gives fatal error: 'X11/Xlib.h' file not found, so I'm stumped again. I'm not very good at all that unix hacking. I'm a Mac user, I just want to click an app...
In Section
Seekers of Perl Wisdom
|
|