Many examples show the following way of calculating a font's logical size from its point size, which is also how my code has been doing it for years:
SizeLogical = -MulDiv(SizePt, GetDeviceCaps(hdc, LOGPIXELSY), 72);
But I recently noticed that examples like this one use a factor of 96 instead of 72. Is this because the monitors' physical resolution has increased over the years, so they display 96 pixels per inch as opposed to typography's classic 72 points per inch? If so, the correct solution would be to determine the factor dynamically, but which Windows API does one call to do that? Or am I misunderstanding it all anyway?