I must be doing something wrong but I am not seeing expected changes in font sizes. For example, take the following code. I would expect a gradual increase in the displayed font size but on my Windows 7 machine I see a sudden massive change in size at size 66.
Code: Select all
W := A_ScreenWidth * 0.8
FS := A_index * 2
Gui, -Caption -DPIScale
Gui, margin, 0, 0
Gui, Color, blue, white
Gui, font, s%FS%, Courier
Gui, add, text, w%W% cwhite, %FS%
Gui, show, center autosize, Test
I'm looking for a way to calculate font size dependent upon the length of the total text vs a specific area, eg 80% of Screen width and 70% of screen height. But font size seems unreliable. Has anyone else noticed problems with font sizes? Can anyone suggest an approach to calculate font size vs physical area. Thanks.