the UI I'm designing with Mudlet is composed of many elements which sizes are pixel-perfect.
In many cases I draw labels with a width/height (defined in pixels) that can perfectly fit text of a specific size (defined in points).
Everything goes well if Windows is set to 100% scale (control panel -> display -> scale and layout).

When scale value is set to something different than 100%, my labels continue to have the size in pixels I've defined, but the text is rendered with a scale proportional to that set on Windows, and the text won't fit its Label.

I don't want the UI to follow Windows scale, I want it to be pixel-perfect.
Is it possible to create a Label with text size defined in pixels? If not, is it possible to know the Windows scale, so to manually calculate text size based on the scale value?
Thanks.