Re: Making pt a non-physical unit

On Wed, Jan 6, 2010 at 7:01 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> The dpi Firefox uses can either be set via preferences, or again queried
> from the OS.  In the Linux case gdk_screen_get_resolution is used, with
> various fallbacks to 96 in cases when it's actually less than 96 and the
> like...  On Windows, the logical DPI is currently used (GetDeviceCaps with
> LOGPIXELSY).  On Mac 96 is used.  On OS/2, DevQueryCaps with
> CAPS_VERTICAL_FONT_RES is used.


Turns out LOGPIXELSY is actually more like a user preference. Also turns out
that gdk_screen_get_resolution doesn't actually use the X display
resolution. I'm fixing those issues.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]

Received on Tuesday, 5 January 2010 18:57:01 UTC