Posts: 64
Threads: 21
Joined: Apr 2022
Reputation:
2
I posted earlier about an issue involving font sizes on a screen. I've figured out how I can perform manual calculations, but I need to know the screen scaling factor to make my calculations.
Is there some way that I can ascertain the scaling factor from within QB64?
Posts: 2,700
Threads: 124
Joined: Apr 2022
Reputation:
134
Use _DeskTopWidth, _DeskTopHeight for maximum screen pixels, scale from those numbers.
b = b + ...
Posts: 1,616
Threads: 157
Joined: Apr 2022
Reputation:
77
Did you check out my post, here?
https://staging.qb64phoenix.com/showthread.php?tid=337
_HEIGHT
_WIDTH
_FONTHEIGHT
_FONTWIDTH
If eggs are brain food, Biden takes his scrambled.
Posts: 64
Threads: 21
Joined: Apr 2022
Reputation:
2
Just to follow up and close the loop on this question, using the _FONTHEIGHT and _FONTWIDTH worked perfectly for me. The calculations work perfectly using that.