Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why "16 pixels"? Wouldn't scaling fonts based in cm/inch make more sense to be resolution independent, especially important on mobile devices?


Many mobile devices ignore these units - to my annoyance - in favour of the "reference pixel" as defined in CSS. http://www.w3.org/TR/CSS2/syndata.html#length-units

Crazy-speak IMO, and I suspect I'm not the only one... perhaps someone in the standards community could explain the rationale.


Yes it's sad how in software development, the most straightforward ways to do something (just specify cm) are usually broken. It's always exception built on exception, different per platform, different per browser.

I guess to do it correctly you'd have to write javascript to reliably detect the DPI on all platforms/browsers (as far as possible, if not make some educated guess) then adapt your text sizes to that :(

So I can certainly understand 'just choose 16px and be done with it'.


Yeah, I set my paragraph font size to 100%, which Chrome tells me is 14px at normal zoom level. Maybe I should bump it up to 115%.


While it makes sense to use a resolution-independent scaling, keep in mind that mobile should have a smaller font size in inches than a full screen, akin to the font size in a book. I certainly don't use my phone with arm outstretched.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: