Various unicode symbols fail to display anywhere in the application after being displayed in italics

未关闭
#607 16 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
desktop

调研方向

首先,在 Windows 11 上使用 Racket 8.8 在 DrRacket 中重现该问题,使用粘贴的 𝕣 字符,然后比较斜体注释、错误和状态栏消息。跟踪斜体渲染路径,并验证修复后数学 Unicode 符号在当前窗口和新打开的窗口中仍能正确显示。

由索引模型根据 Issue 内容生成。

描述

Tested on Windows 11 with Racket 8.8

Steps to reproduce:

  1. Open DrRacket
  2. Create a new racket file
  3. Paste 𝕣 into it

Once this is done, every 𝕣 character within the current window, as well as any 𝕣 characters displayed in new windows, will experience the bug until the application is completely restarted.

To confirm that italics are specifically the cause, you can reproduce the bug with comments if you change their style settings. Conversely, you can eliminate the bug from the REPL if you change it to not italicize errors.

Originally I encountered this problem just with the less conventional double struck letters (i.e everything but ℂ, ℍ, ℕ, ℙ, ℚ, ℝ, and ℤ), but looking into it further it seems to affect other characters like ⟜⌾◶⎉⍟⎊⥊⌽⍉⍋⍒⍷. They're all mathematical so far, but that could just be because I haven't tested much else. As for how broken italics breaks every other instance of the character, that's still a complete mystery to me.

For the time being, is there a way to disable italics for status bar error messages like there is for REPL ones?

主要语言
Racket
星标
517
派生
102
平均合并
20 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

racket/drracket 的其他 Issue

查看 racket/drracket 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。