Skip to content

Chinese text spacing and bold rendering issues #590

Closed as not planned
Closed as not planned

Description

@songyuc

Description

When using Typst to typeset Chinese text, I noticed two major issues affecting the appearance of Chinese documents in the online editor:

  1. Uneven character spacing: The spacing between Chinese characters is inconsistent, resulting in unnatural typography.
  2. Incorrect bold rendering: Some Chinese characters appear overly bold or have an inconsistent boldness compared to others, which disrupts the uniformity of the text.

Both of these issues make the Chinese text look less professional and harder to read.

Steps to Reproduce:

  1. Open the Typst online editor.
  2. Enter a block of Chinese text.
  3. Observe the preview panel on the right side.

Expected Behavior:

  1. Chinese text should have consistent spacing between characters, similar to professionally typeset documents.
  2. Bold styles should apply uniformly to Chinese characters without any unusual or exaggerated thickness.

Actual Behavior:

  1. The spacing between Chinese characters is uneven, and the layout looks unnatural.
  2. Some Chinese characters appear in a strange, exaggerated bold style, even when the rest of the text looks normal.

Screenshots:

Image

Suggestions:

  • Include Chinese-compatible fonts, such as Noto Sans SC or Source Han Sans, as default options.
  • Adjust the rendering rules for bold text to ensure uniform thickness across all Chinese characters.
  • Implement proper spacing rules specific to Chinese typesetting, including adjustments for punctuation.

Thank you for your attention to this issue! I believe improving Typst's support for Chinese text will greatly enhance its usability for users worldwide.

Reproduction URL

No response

Browsers

Microsoft Edge

OS

Windows

Activity

  1. added
    bug
    on Apr 1, 2025
  2. ShiningYangYXN commented on Aug 14, 2025

    @ShiningYangYXN

    Place the following code at the top of your file to solve your problem.

    #set text(
      lang: "zh",
      font: ("Noto Serif","Noto Serif CJK SC")
    )

    For more features, use the following instead.

    #let serif-font = ("Noto Serif","Noto Serif CJK SC")
    #let sans-font = ("Noto Sans","Noto Sans CJK SC")
    #let mono-font = ("Cascadia Code","Noto Sans CJK SC")
    
    #let serif(content) = {
      set text(font: serif-font)
      [#content]
    }
    #let sans(content) = {
      set text(font: sans-font)
      [#content]
    }
    #let mono(content) = {
      set text(font: mono-font)
      [#content]
    }
    
    #set text(
      lang: "zh",
      font: serif-font
    )
  3. changed the title [-][Bug] Chinese text spacing and bold rendering issues in Typst editor[/-] [+]Chinese text spacing and bold rendering issues[/+] on Sep 18, 2025
  4. added
    editor
    on Sep 18, 2025
  5. laurmaedje commented on Sep 18, 2025

    @laurmaedje
    Member

    Better out of the box behavior for Chinese desirable, but as-is, this is not a bug per se, so I'll close this. I've opened the more general issue #720 instead.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugeditor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions