Skip to content

[BUG REPORT] 字体回退导致的解析问题 #30

Closed

Description

@Devsuner

Where

Windows

What happened

Image

使用Windows Terminal时, 并未出现字体解析错误.

Steps to reproduce

字体系列: 选择MonoLisa
后备字体: 选择Maple Mono NF CN
进入编辑器, 或是使用yazi这样的TUI文件管理器查看

What you expected

Image

Commit or version

0.19.0

Logs

Activity

  1. added
    bug
    on Oct 26, 2026
  2. Raiden-MeixElysia commented on Oct 29, 2026

    @Raiden-MeixElysia
    Contributor

    Thank you for the report and the screenshots. Fixed on main.

    Windows picks the font file for a fallback run, here Maple Mono NF CN's Italic file. gpui then looked the font up again by name and got the Regular file with a synthetic slant, so the Italic file's glyph numbers were drawn from the Regular file and showed other characters. gpui now draws with the file Windows chose. With Consolas plus Maple Mono NF CN 7.9 on Windows 11, //图片的规格 now draws as written in italic and bold italic, where 0.1.9 drew //坑狂敃詭粲. The fix ships in the next release.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions