[Proposal] Render Noto CJK font with a shorter CJK line height
Categories
(Core :: Layout: Text and Fonts, enhancement)
Tracking
()
People
(Reporter: billyswong, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
Steps to reproduce:
When a Chinese webpage is rendered in Windows by the default fallback fonts, no matter it is Microsoft JhengHei or YaHei or MingLiU or SimSun, the line height is similar to other Latin fonts. However, when it comes to Linux / Android which uses Noto Sans or Serif CJK, the minimum line height is increased quite a lot. In the past, I thought it is an artistic decision that we have to stuck with, but recently I find that it is not true.
Actual results:
The behavioral difference of Noto CJK compared to other CJK fonts, as illustrated in https://gitlab.gnome.org/GNOME/vte/-/issues/347#note_1134907 , is cause by this: https://github.com/googlefonts/noto-cjk/issues/144#issuecomment-478968910
According to what discussed in the noto cjk github, the noto cjk font is incorporating glyphs that are only used in vertical text flow, namely vertical form of "two-em dash", vertical form of "three-em dash", "vertical kana repeat mark", "vertical kana repeat with voiced sound mark". (I don't know if there are also other glyphs involved, but the discussion there only listed these.) Those glyphs are irrelevant in horizontal text flow, and should not be used in determining line height for a normal paragraph in the first place.
Expected results:
It may be bending the rules too much, but it will be wonderful if someone can create some special case rules such that when one render a line of text with usual CJK characters in Linux / Android platforms, it will have a default line height similar to the rendering in Windows.
Welcome to point out if there are any more general solutions.
| Reporter | ||
Comment 1•4 years ago
|
||
Oh some more information: Taking a closer look at the bug ticket in Noto CJK github, they closed the bug 2 years ago as "out of scope" after someone there promised they will create a new variant of Noto CJK that skipped glyphs that expand the line height. They also talked of glyph between U+1EA0 and U+1EF9, which are Latin characters with multiple diacritics. 2 years later, the new font variant is still nowhere to found and there we are today.
What a strange world if a CJK font got atypical line height because it wants to adapt for "Latin characters with multiple diacritics" ... It's not your business. Argh!!!
Comment 2•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Description
•