W3C home > Mailing lists > Public > www-style@w3.org > January 2014

Re: [css-fonts] Specify that the default "medium" font-size should by 16px?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 17 Jan 2014 08:51:28 -0800
Message-ID: <CAAWBYDBd17a0oRv-2iwFyxq1J+rMGVrr8GZe=F861PLEdjsqhQ@mail.gmail.com>
To: Gérard Talbot <www-style@gtalbot.org>
Cc: Felix Miata <mrmazda@earthlink.net>, www-style list <www-style@w3.org>
On Thu, Jan 16, 2014 at 10:30 PM, Gérard Talbot <www-style@gtalbot.org> wrote:
> I do not understand how you can say and why you say that 16px is always
> equal to 12pt, especially if DPI is 180.
> Setting the px value (from 16px to, say, 18px) has no impact on the DPI
> setting: I understand that.
> As far as I understand this, 16px is equal to 12pt when and only when DPI
> setting is 96.
> ...Maybe I'm wrong... pixel density per inch (DPI) affects how big or small
> a 16px font size graphem looks.

Please reread <http://dev.w3.org/csswg/css-values/#absolute-lengths>.
The 'px' unit is an absolute unit, defined to have a 96:1 ratio with
the 'in' unit (and thus a 4:3 ratio with the 'pt' unit).  It has
nothing to do with device pixels, which is what is measured by DPI.

Received on Friday, 17 January 2014 16:52:16 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:36 UTC