[GH-ISSUE #3174] MesloLGS NF 在 archlinux 下显示不正常 #2114

Closed
opened 2026-02-27 00:06:08 +03:00 by kerem · 2 comments
Owner

Originally created by @txl263 on GitHub (Dec 14, 2023).
Original GitHub issue: https://github.com/electerm/electerm/issues/3174

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-bin 1.37.60

Platform detail (平台详情)

Arch Linux x86_64

What steps will reproduce the bug?(重新问题的详细步骤)

OS : Arch Linux x86_64
Kernel : 5.10.202-1-lts510
electerm-bin 1.37.60
ZSH=/usr/share/oh-my-zsh/
p10k theme
哎哟我去,你这个设置给我整不会了,我整个人现在是懵的。。。。
从头说啊

  1. 我本机是 macOS 13.4.1 终端iTerm2 Build 3.5.0beta18用的MesloLGS NF 字体。因为最近 electerm1.37.60 新版本升级支持连字所以也设置了MesloLGS NF 字体,一切正常
  2. 另一台 MBP 系统Arch Linux 6.6.3-arch1-1 终端electerm-bin 1.37.60,因为系统没有MesloLGS NF 字体(macOS 上的字体是p10k configureiterm2 自动安装的),所以我从https://github.com/romkatv/powerlevel10k.git 下载了MesloLGS NF 字体安装后发现特殊字符显示方块。
  3. 我很奇怪为什么同样的版本同样的字体,linux 下的版本显示不正常?回到 macOS 我用手动从https://github.com/romkatv/powerlevel10k.git 下载的MesloLGS NF字体替换 p10k 自动下载的字体,唉!!!这下 macOS 下 iTerm2electerm也都不能正常显示特殊字符了。。。
  4. 手动删除了系统里的MesloLGS NF字体,然后运行p10k configure ,选择安装字体,MesloLGS NF字体又被安回了系统,这次 iTerm2 里显示正常,但是 electerm 里依然不能正常显示特殊字符。
  5. 我把 macOS 系统里的MesloLGS NF字体拷贝到 linux 下 electerm依然不能正常显示特殊字符。
  6. linux 下 kittytabby 不管字体设置成 MesloLGS NF还是SourceCodePro+Powerline+Awesome Regular都能正常显示
  7. macOS 下 kittytabby 不管字体设置成 MesloLGS NF还是SourceCodePro+Powerline+Awesome Regular都能正常显示

What should have happened?(期望的结果)

特殊字符串正常显示

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @txl263 on GitHub (Dec 14, 2023). Original GitHub issue: https://github.com/electerm/electerm/issues/3174 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-bin 1.37.60 ### Platform detail (平台详情) Arch Linux x86_64 ### What steps will reproduce the bug?(重新问题的详细步骤) OS : Arch Linux x86_64 Kernel : 5.10.202-1-lts510 electerm-bin 1.37.60 ZSH=/usr/share/oh-my-zsh/ p10k theme 哎哟我去,你这个设置给我整不会了,我整个人现在是懵的。。。。 从头说啊 1. 我本机是 `macOS 13.4.1 `终端` iTerm2 Build 3.5.0beta18 `用的MesloLGS NF 字体。因为最近 `electerm1.37.60` 新版本升级支持连字所以也设置了`MesloLGS NF` 字体,一切正常 2. 另一台 MBP 系统`Arch Linux 6.6.3-arch1-1` 终端`electerm-bin 1.37.60`,因为系统没有`MesloLGS NF` 字体(macOS 上的字体是`p10k configure` 给 `iterm2` 自动安装的),所以我从https://github.com/romkatv/powerlevel10k.git 下载了`MesloLGS NF` 字体安装后发现特殊字符显示方块。 3. 我很奇怪为什么同样的版本同样的字体,linux 下的版本显示不正常?回到 macOS 我用手动从https://github.com/romkatv/powerlevel10k.git 下载的`MesloLGS NF`字体替换 p10k 自动下载的字体,唉!!!这下 macOS 下 `iTerm2` 和 `electerm`也都不能正常显示特殊字符了。。。 4. 手动删除了系统里的`MesloLGS NF`字体,然后运行`p10k configure` ,选择安装字体,`MesloLGS NF`字体又被安回了系统,这次 iTerm2 里显示正常,但是 electerm 里依然不能正常显示特殊字符。 5. 我把 macOS 系统里的`MesloLGS NF`字体拷贝到 linux 下 `electerm`依然不能正常显示特殊字符。 6. linux 下 `kitty` 和 `tabby` 不管字体设置成 `MesloLGS NF`还是`SourceCodePro+Powerline+Awesome Regular`都能正常显示 7. macOS 下 `kitty` 和 `tabby` 不管字体设置成 `MesloLGS NF`还是`SourceCodePro+Powerline+Awesome Regular`都能正常显示 ### What should have happened?(期望的结果) 特殊字符串正常显示 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem 2026-02-27 00:06:08 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@txl263 commented on GitHub (Dec 14, 2023):

折腾了一圈把原来显示正常的也给搞不正常了,我就觉得不应该啊,我就再次检查配置,终于发现了罪魁祸首
image
删除默认字体的时候第一个会保留一个 X 在那里。。。。。。把这个 X 删除或者改成MesloLGS NF字体就一切正常了。。
搞了几个小时结果就是因为这个 X 希望改进一下,当后面有字体的时候,把首位的 X 给自动删除或者让第一个有效字体生效

<!-- gh-comment-id:1855321462 --> @txl263 commented on GitHub (Dec 14, 2023): 折腾了一圈把原来显示正常的也给搞不正常了,我就觉得不应该啊,我就再次检查配置,终于发现了罪魁祸首 ![image](https://github.com/electerm/electerm/assets/969317/f8222e48-9bba-4771-ae5e-9f5ba69583b8) 删除默认字体的时候第一个会保留一个 X 在那里。。。。。。把这个 X 删除或者改成`MesloLGS NF`字体就一切正常了。。 搞了几个小时结果就是因为这个 **X** 希望改进一下,当后面有字体的时候,把首位的 X 给自动删除或者让第一个有效字体生效
Author
Owner

@zxdong262 commented on GitHub (Dec 14, 2023):

感谢反馈,将在下个版本修复

<!-- gh-comment-id:1855693424 --> @zxdong262 commented on GitHub (Dec 14, 2023): 感谢反馈,将在下个版本修复
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2114
No description provided.