Skip to content

Letters are not correctly aligned in a grid or table when using some Chinese fonts #1610

@wildabc

Description

@wildabc

Description

When different fonts are used, they may be not correctly aligned. The font used in the example is Fangzheng Hei GBK (FZHTK.TTF which can be downloaded from https://github.com/Universebenzene/wps-office-fonts/). And this can also cause problems in list or enum

#grid(columns: (2em, 2em), text(font:"Arial")[123], text(font:"FZHei-B01")[123])

#text(font:("Arial","FZHei-B01"))[+ 壹]

图片

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-investigationMore investigation is necessary.textRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions