W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2020

Re: [csswg-drafts] Interoperable font metrics (#4792)

From: Tobi Reif via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Feb 2020 17:49:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-588353050-1582134557-sysbot+gh@w3.org>
@khaledhosny wrote:
> One can already override font provided line spacing with CSS `line-height`

`line-height:normal` does not help, see https://github.com/w3c/csswg-drafts/issues/2228#issuecomment-366310641

Chrome on MacOS:
![36321604-9e035454-134a-11e8-9537-55405fe412cc](https://user-images.githubusercontent.com/80411/74859630-a7ba2880-5347-11ea-8087-0a815b5bba63.png)

Chrome on Windows:
![36321633-b52e3cd4-134a-11e8-8526-cadf5e99e0c6](https://user-images.githubusercontent.com/80411/74859710-c0c2d980-5347-11ea-832d-53bc8a7f8272.png)

`line-height: 1` does not help either, see https://github.com/w3c/csswg-drafts/issues/2228#issuecomment-504767148

@faceless2 wrote:
> Yes, you can set a specific line-height every time you use that font and get consistent
> cross-browser results for line-spacing.

The issue is not line-spacing 😀The issue is shown in the above screenshots. When it appears it appears even for a single line or word, on one OS vs another (more at #2228 ).

@jfkthame wrote:
> Setting line-height is not sufficent

True!

-- 
GitHub Notification of comment by tobireif
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4792#issuecomment-588353050 using your GitHub account
Received on Wednesday, 19 February 2020 17:49:20 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:00 UTC