Skip to content

Writing non-Latin (e.g. Chinese) text without a configured font leads to unpredictable font fallback #5040

@LaurenzV

Description

@LaurenzV

Description

Example:

将要方翼転稿選敗経容友表機。発無生以極会知質著陸質上必者教輸。庭菊意司情門佐略駒給県間相申行。文様理能株原位万一条中意中詳破必資地加。清問明田謝暮合住経件故本性勢長夜最。第向表社旅当英佐処石済度聞連。情全知公真三告用右暮共南。焦情穴毎局兵月過初薄当大異経町。覧薄約最快業武朝員持幌豊生御節。在新大注議中警緊予荷需業治客。

Result:
image

Note how there are a few characters that are bolder than the rest. This is kind of a web app issue, but I'm still posting it here so I can label with with "urgent", because I think that should definitely be fixed before the next release, as it's a bad user experience. Maybe by changing the default web app fonts so that a font is chosen that supports both, Japanese and Chinese characters.

From what I can tell, the issue is that it uses MoeSong UN by default, which apparently is missing some characters, which are taken from Noto Sans CJK. Maybe we should just always use Noto Sans CJK?

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcjkChinese, Japanese, Korean typography.textText layout, shaping, internationalization, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions