NerdFonts builds carry the Nerd Fonts 3.1 glyph set; icons added since 3.2 are missing

未關閉
#412 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python, shell
領域
tooling

研究方向

Start with the .glyphs sources and compare their codepoints against Nerd Fonts' glyphnames.json, using fontTools to inspect MonaspaceNeonNF-Regular.otf. The missing examples include nf-fa-meteor at U+EF23 and nf-fa-comment_dollar at U+EEC1. Done means the NerdFonts builds include the glyphs from the requested 3.5.x release and a codepoint check confirms the previously missing icons are present.

由索引模型根據 Issue 內容生成。

描述

The NF fonts in v1.400 seem to carry the Nerd Fonts 3.1.x glyph set (November 2023). About 1,400 icons that Nerd Fonts added in 3.2.0 (April 2024) through 3.5.0 are missing, so they draw as boxes or question marks.

The biggest gap is the extended Font Awesome block at U+ED00 to U+EFCE, which Nerd Fonts added in 3.2.0. For example:

Codepoint Nerd Fonts name In Nerd Fonts since
U+EF23 nf-fa-meteor 3.2.0
U+EEC1 nf-fa-comment_dollar 3.2.0

How I checked

I compared the icon codepoints in MonaspaceNeonNF-Regular.otf (v1.400) with Nerd Fonts' glyphnames.json at each 3.x tag:

Nerd Fonts release Its icons missing from Monaspace NF Monaspace NF icons not in that release
3.0.0 2,098 106
3.1.1 31 33
3.2.0 868 (797 Font Awesome, 52 Codicons) 12
3.5.0 1,432 (805 Font Awesome, 410 Devicons, 154 Codicons) 12

3.1.x is the only release that fits both ways. Another hint: U+EE00 to U+EE05 are in the font. Nerd Fonts 3.1 used those codepoints for progress-bar glyphs, and 3.2 reassigned them to Font Awesome, the range where the font's glyphs stop.

To check one codepoint yourself, with fontTools:

python3 -c "from fontTools.ttLib import TTFont; print(0xEF23 in TTFont('MonaspaceNeonNF-Regular.otf').getBestCmap())"
# False

Request

Could the NerdFonts builds be refreshed from a current Nerd Fonts release (3.5.x)? I understand the glyphs are hand-placed in the .glyphs sources rather than patched, so this is more work than rerunning the patcher.

Environment

  • Monaspace version: v1.400 (Version 1.400 (Monaspace Neon NF))
  • Font: Monaspace Neon NF (static OTF, NerdFonts package)
  • Compared against: Nerd Fonts v3.0.0, v3.1.1, v3.2.0, v3.5.0
主要語言
Shell
星號
19.9k
分支
325
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

githubnext/monaspace 的其他 Issue

查看 githubnext/monaspace 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。