Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Linux, use CJK fallback fonts for Tertiary Ideographic Plane #31663

Closed
delan opened this issue Mar 14, 2024 · 0 comments · Fixed by #31670
Closed

On Linux, use CJK fallback fonts for Tertiary Ideographic Plane #31663

delan opened this issue Mar 14, 2024 · 0 comments · Fixed by #31670

Comments

@delan
Copy link
Sponsor Member

delan commented Mar 14, 2024

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.

For text in Chinese, Japanese, or Korean, we add an extra list of fallback fonts, but our check for those languages is outdated. Update the check to include characters in the new Tertiary Ideographic Plane (plane 3), which is entirely dedicated to CJK languages.

For testing, you can use the character 𰻝 (U+30EDD), or the following test page:
data:text/html;charset=utf-8,%F0%B0%BB%9D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant