W3C home > Mailing lists > Public > public-css-testsuite@w3.org > September 2006

Re: pixel-based vs. real-word-pased units

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 11 Sep 2006 20:10:25 -0700
To: public-css-testsuite@w3.org
Message-ID: <20060912031025.GA6748@ridley.dbaron.org>
On Monday 2006-09-11 16:23 -0700, Ian Hickson wrote:
> In practice, if you want to render real-world Web content, you're
> going to have to make the 96dpi assumption (as well as most of the
> others). Not making that assumption breaks all kinds of Web pages.

No, you have to clamp the OS-provided logical resolution to a *minimum*
of 96dpi.  This is because authors have often specified font sizes in
points when looking at 96dpi displays, since that's the default logical
resolution on Windows.  For small font sizes, the number of pixels
occupied by the characters is a major determinant of legibility.

Using larger values of logical resolution works just fine for real world
Web content.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Tuesday, 12 September 2006 03:10:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:54 GMT