Re: [csswg-drafts] [css-fonts] Specifying changes to parameters for fallback fonts

Sorry, I was taking shortcuts and not explaining them well. 
font-size-adjust does indeed work, but it merely does the objectively 
thing, not the subjectively correct things.

The number you need to use for two fonts to feel the same size isn't 
always the same.

For instance, if you look at this example, preferably on a Mac, or on 
a computer that has a baskerville font with the same metrics 
installed:
http://jsbin.com/powokig/edit?html,css,output

For those who don't have the right fonts it looks like this 
<img style="display: inline" width="251" alt="screenshot 2016-05-26 14
 03 37" 
src="https://cloud.githubusercontent.com/assets/113268/15564361/5b36cba0-234c-11e6-9b76-e3a6296cd1d1.png">

The first p has not font-size-adjust, and is obviously terrible.

The second one has font-size-adjust applied with the same value on 
both baskerville and libre baskerville. It's much better, but the two 
fonts, while close, don't feel quite the same. Libre Baskerville has 
comparatively shorter capitals, and due to the shape of the glyphs, 
the lower case letters feels every so slightly shorter as well, even 
if I am sure the metrics do match.

On the third p, I am applying a different font-size-adjust for 
baskerville and libre baskerville, which I think makes them 
subjectively more similar. I can do this here because I am actually 
specifying the fonts separately, but if I had been using fallback 
fonts, there would be no way for me to do that.

In this case, the difference is tiny, and nothing to loose sleep over,
 but the best result isn't the one you can achieve with 
font-size-adjust, and I suspect that as Richard mentioned, things get 
worse with internationalization.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/126#issuecomment-221779933 
using your GitHub account

Received on Thursday, 26 May 2016 05:18:00 UTC