- From: Gérard Talbot <www-style@gtalbot.org>
- Date: Sat, 19 Oct 2013 15:41:30 -0400
- To: Glenn Adams <glenn@skynav.com>
- Cc: "L. David Baron" <dbaron@dbaron.org>, W3C Style <www-style@w3.org>
Le 2013-10-19 10:14, Glenn Adams a écrit : > On Sat, Oct 19, 2013 at 2:18 AM, L. David Baron <dbaron@dbaron.org> > wrote: > >> On Thursday 2013-10-17 10:52 -0600, Glenn Adams wrote: >> > In CSS2.1, we have the following in Section 10.8.1: >> > >> > "When an element contains text that is rendered in more than one font, >> user >> > agents may determine the 'normal' >> > 'line-height'<http://www.w3.org/TR/CSS2/visudet.html#propdef-line-height >> > >> > value >> > according to the largest font size." [snipped] > >> >> What it's referring to is that the font matching algorithm is >> per-character, so different fonts might be used for different >> characters within the element. These fonts might have different >> sizes (due to unavailability of some font sizes with bitmap fonts) >> >> or might have font metrics that suggest different normal line >> heights > Various font faces cause different normal line heights as demonstrated by this test page: http://www.brunildo.org/test/fontlist3.html -------- As I add or remove different font family (Zn) in this test http://www.gtalbot.org/BrowserBugsSection/CSS3LineBox/line-height-normal-multiple-font-family.html the line box height increases or decreases. So, now, I think we have a test for that famous quoted sentence " When an element contains text that is rendered in more than one font, user agents may determine the 'normal' 'line-height' value according to the largest font size. " Unfortunately, creating a test (that would work reliably across Windows, Mac, Linux platforms) for this is very difficult. Gérard
Received on Saturday, 19 October 2013 19:42:02 UTC