On Windows, it appears that the size of text rendered using QPainter is affected by the operating system's overall DPI Scaling factor (ex: 1.5 vs. 2.0).
For example, in the two images below, we can see that the scoreboard rendered when the UI Scaling factor is 2.0 has larger text than when the DPI Scaling factor is 1.5.
1.5 Scaling: This is the look of the scoreboards that we wish to achieve.
2.0 Scaling: Here, we can see that the text is drawn larger, making the scoreboard look less appealing.
On Windows, it appears that the size of text rendered using QPainter is affected by the operating system's overall DPI Scaling factor (ex: 1.5 vs. 2.0).
For example, in the two images below, we can see that the scoreboard rendered when the UI Scaling factor is 2.0 has larger text than when the DPI Scaling factor is 1.5.
1.5 Scaling: This is the look of the scoreboards that we wish to achieve.
2.0 Scaling: Here, we can see that the text is drawn larger, making the scoreboard look less appealing.