Posts: 69
Threads: 24
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: 4,693
Threads: 222
Joined: Apr 2022
Reputation:
322
Use _DeskTopWidth, _DeskTopHeight for maximum screen pixels, scale from those numbers.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 2,910
Threads: 305
Joined: Apr 2022
Reputation:
167
Did you check out my post, here?
https://qb64phoenix.com/forum/showthread.php?tid=337
_HEIGHT
_WIDTH
_FONTHEIGHT
_FONTWIDTH
Shoot first and shoot people who ask questions, later.
Posts: 69
Threads: 24
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.