Mac: fixed dpi 72 should be changed to Windows-value 96
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
Carbon sets OS's pixels per inch to 72.
It is not correct, coz it gives problems with font sizes in many apps.
e.g., CudaText scales a window from its design dpi 96, to OS dpi (for Mac it's 72).
It gives wrong scaled window - it's smaller on Mac, while it must not be smaller
Wish: set to 96
Additional information:
function TCarbonWidgetSet.GetDeviceCaps(DC: HDC; Index: Integer): Integer;
begin
Result := 0;
{$IFDEF VerboseWinAPI}
DebugLn('TCarbonWidgetSet.GetDeviceCaps DC: ' + DbgS(DC) + ' Index: ' + DbgS(Index));
{$ENDIF}
if not CheckDC(DC, 'GetDeviceCaps') then Exit;
case Index of
LOGPIXELSX,
LOGPIXELSY:
// logical is allways 72 dpi, although physical can differ
Result := 72; // TODO: test scaling and magnification
===
Mac users write this-
Aha! Looking with the correct phrase, "os x dpi", I get lots of hits. As expected, the general answer is no, the Mac OS still does not have a global DPI setting. It's all application independent. Each app does whatever it does and is unlikely to be the same as another app. So trying to find a magic point size that will always be xxx pixels tall would be a lesson in frustration.
https://discussions.apple.com/thread/5153667?start=0&tstart=0