You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On Linux, add Noto fonts to fallback list for other languages #31664
When a character isn’t supported by any of the fonts chosen by the page, some browsers search through all of the installed fonts to find one that supports text in that language (e.g. Firefox). Servo can’t do that yet, but we currently have hardcoded lists of “fallback fonts” that we try in those situations. There are separate lists for each platform, and on Linux, we use the list in freetype/font_list.rs.
Noto fonts are often installed by default on Linux distros like Ubuntu. We can use char::script() to check what script (language) the character is in.
Hey @delan, I think none of the variants in script fall into unicode plane 2, besides the function is_cjk primarily matches unicode blocks containing CJK Unified Ideographs Extension characters.
Hey @delan, I think none of the variants in script fall into unicode plane 2, besides the function is_cjk primarily matches unicode blocks containing CJK Unified Ideographs Extension characters.
I would expect most of those scripts to be in plane 0 (BMP) or plane 1 (SMP), but yeah, this would be separate to the is_cjk() check (if the character is CJK, add the CJK fonts, if the character is Adlam, add Noto Sans Adlam, and so on).
Activity
richarddushime commentedon Mar 14, 2024
Hi @delan
i would like to work on this
can you assign it to me ?
sandeepB3 commentedon Mar 14, 2024
Hey @delan, I think none of the variants in script fall into unicode plane 2, besides the function
is_cjkprimarily matches unicode blocks containing CJK Unified Ideographs Extension characters.delan commentedon Mar 15, 2024
I would expect most of those scripts to be in plane 0 (BMP) or plane 1 (SMP), but yeah, this would be separate to the is_cjk() check (if the character is CJK, add the CJK fonts, if the character is Adlam, add Noto Sans Adlam, and so on).
komutumu commentedon May 3, 2024
Hello @delan , has this been addressed or I can have a go at it?
I see more fonts added to the list.
fonts: Improve font fallback
fonts: Improve font fallback
fonts: Improve font fallback
fonts: Improve font fallback
fonts: Improve font fallback
fonts: Improve font fallback
fonts: Improve font fallback (#32286)