https://coin3d.github.io/Coin/html/clas ... d342b11d44
So it means that by default SoFont uses pixels, not points to determine the font size (72 pixels per inch instead of 96).
To determine the font size in pixels when text scaling is set to 200%, Qt uses the following formula:
Code: Select all
device_pixel_ratio = 2 // 200%
pixels = points / 72 * 96 * device_pixel_ratio
Maybe, you're right and just setting dpi to 96 multiplied by device pixel ratio (using setPixelsPerInch method) would help.