Restored from previous forum. Originally posted by tinman. Quote:
BTW: What is this anyway? DPI value on the desktop?
How can Windows know about that?
Does the Monitor tells Windows: "Hey Buddy, I'm a 21" Monitor" ?
If so, with the resolution info the OS can calculate the theoratic dpi.
And what can I do as programmer knowing the dpi instead of the screen resolution?
Thanks for testing it. Seems I need to slap my computer a bit then

I'm using it for font sizes. I've got some code and it always returns the wrong size for the font, but if I get this then I can calculate the pixel size from the known "em" size (specified in 1/72th of an inch).
It's basically the DPI value shown for the font on the "Settings" tab of the Display properties.
--
It's not minimalist - I'm increasing efficiency by reducing input effort.