Posted by member 318646 on 2008-05-02 12:12:33
I myself use a large format (22" widescreen), high resolution screen, and size 16 fonts at 1680 x 1050 don't really work (niether do many undersized jdesk workareas, but that's for anotehr coding idea), so I've been adjusting all of my fonts by hand. Which gets REALLY annoying. So i was wondering, since there's ussually jsut a reused font, over and over again, why not declare a global font and fontsize with if thens for screen size, say an if then for when the screen is larger than 1280 x 1024 then make hte font size 20(or 24) else make it 16 or 18 like a lot of people like, with custom fonts for certain things that are just written in right hten and there. I've been wondering why people don't try this since it's simple programming practice to try and make an adaptable program (and since a theme really is jsut a lua script, well we get the idea) so why have I only found that under a few themes, whilst most jsut sit at size 16 even with the global font decalred. So would this be feasable? I myself am new to the whole theming scripts (not much of a lua fan, python is jsut so adaptable XD), and was wondering what block of code I might need to add?