[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-mm-width return value off on Windows

From: David Kastrup
Subject: Re: display-mm-width return value off on Windows
Date: Sun, 09 Jul 2006 10:05:28 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Jason Rumney (2006-07-08) writes:
>> But using LOGPIXELSX/LOGPIXELSY is not going to be any more
>> accurate than what monitors report, or Windows makes up, since it
>> is based on a dpi setting that is user configurable, defaulting to
>> 96dpi,
> If `GetDeviceCaps (hdc, HORSIZE)' always assumes a fixed DPI value
> that would explain why the values are so inaccurate especially on
> displays with a high DPI value.  In that case I think it makes sense
> to use the DPI value when calculating the size (as my patch does)
> and assume that the user set it to a value matching her monitor.

The reason this makes sense is that this is how the font size is
determined (the ratio between pixels and point size of a font), and if
one wants to match the dimensions of graphics to a font, one should
use the same algorithm.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]