W3C home > Mailing lists > Public > www-style@w3.org > August 2015

Re: [css-fonts] "system" generic font name

From: Arthur Stolyar <nekr.fabula@gmail.com>
Date: Mon, 3 Aug 2015 02:12:25 +0300
Message-ID: <CAPAD5+CH-htq7jwb7pP=obPS-MAc2T7ZycX1kv-vqhcBxgGPPg@mail.gmail.com>
To: www-style list <www-style@w3.org>
> To the extent that "system", "menu" or "-headline1"-type properties
reflect user-selected preferences, this could expose increased browser
fingerprinting surface or reveal something about the user's vision (e.g.
this user has increased their font size and may have reduced vision).

This is already might be detectable on desktop if someone zoomes the page
(e.g. devicePixelRatio !== default)

So, about system font. Here is what I use to get "system" font on
Android/iOS [1]. This is huge, sometimes buggy and even OS specific already
(see Android notes [2]). And this is only for Latin/non-extreme fonts. This
would be a huge plus if it will be possible to just specify "system"
instead of creating such massive cascades.

Also, if you are going to introduce "system"/"-apply-system" keyword, will
it work in custom font face via "local" function, e.g. like this

[1] https://gist.github.com/NekR/2a4e0abc7e0f591656f9
[2] Android uses some weird naming like "sans-serif-light" or
"sans-serif-medium" to match fonts with different weights.

@nekrtemplar <https://twitter.com/nekrtemplar>
Received on Sunday, 2 August 2015 23:12:53 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 2 August 2015 23:12:54 UTC