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

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 UTC