News for hackers. Stuff that matters.
Re:16 pixels For Body Copy. Anything Less Is A Costly Mistake by wladimir on Friday October 07, 2011 @09:03AM (#3083750)
Why "16 pixels"? Wouldn't scaling fonts based in cm/inch make more sense to be resolution independent, especially important on mobile devices?
Re:16 pixels For Body Copy. Anything Less Is A Costly Mistake by jimworm on Friday October 07, 2011 @09:19AM (#3083806)
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.

Re:16 pixels For Body Copy. Anything Less Is A Costly Mistake by wladimir on Friday October 07, 2011 @09:36AM (#3083863)
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'.

Re:16 pixels For Body Copy. Anything Less Is A Costly Mistake by euroclydon on Friday October 07, 2011 @09:09AM (#3083767)
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%.
Re:16 pixels For Body Copy. Anything Less Is A Costly Mistake by Dylan16807 on Friday October 07, 2011 @10:21AM (#3084091)
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.