W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

Re: [csswg-drafts] [css-fonts] Extend font-size-adjust to adjust for average character width

From: astearns via GitHub <sysbot+gh@w3.org>
Date: Fri, 25 Nov 2016 16:08:09 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-262987992-1480090087-sysbot+gh@w3.org>
I do not think it's possible to avoid reflows by applying a single 
glyph width adjustment.

With ex height, there's one consistent feature of the font being 
modified. And even with that benefit it's difficult to come up with 
the single adjustment that works across browsers (as shown above).

There are a lot of glyph widths in a font, and fonts vary over how 
widths differ across glyphs. Taking an average width is problematic in
 a lot of ways, and whatever method you choose to average over a font 
is almost guaranteed not to match the average over glyph usage in a 
particular piece of content. And even if you did happen to match the 
average in a piece of content, the average in each line will vary 
within that content. So any particular value you choose will still be 
likely to cause line break changes as the number of lines in the 
content increases.

GitHub Notification of comment by astearns
Please view or discuss this issue at 
using your GitHub account
Received on Friday, 25 November 2016 16:08:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:05 UTC