-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot patch nerd font Meslo LGS with codicons #1005
Comments
Sorry to hear of the problem, and thanks for the report. This looks like a real bug. Just one question: You take an already patched font ( Anyhow I will try to reproduce. |
Ah now I get it. The linked manual is 'old', Anyhow I will try to reproduce. |
The script is confused by the Creating PR to fix. Thanks again for reporting the bug. And ... you do not need to self-patch, |
[why] When a custom set is to be patched and that set contains the .notdef glyph the script crashes. [how] The glyphs has an unicode codepoint of -1, a code that we explicitely not patch. That leads to confusion when we try to determine the codepoint to be used for that glyph, because it has none. Exclude negative codepoint glyphs when we determine the selection of to-be-patched glyphs. As last resort for broken custom sets skip over glyphs that come out of order (which should be impossible). Fixes: #1005 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] When a custom set is to be patched and that set contains the .notdef glyph the script crashes. [how] The glyphs has an unicode codepoint of -1, a code that we explicitely not patch. That leads to confusion when we try to determine the codepoint to be used for that glyph, because it has none. Exclude negative codepoint glyphs when we determine the selection of to-be-patched glyphs. As last resort for broken custom sets skip over glyphs that come out of order (which should be impossible). Fixes: #1005 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] When a custom set is to be patched and that set contains the .notdef glyph the script crashes. [how] The glyphs has an unicode codepoint of -1, a code that we explicitely not patch. That leads to confusion when we try to determine the codepoint to be used for that glyph, because it has none. Exclude negative codepoint glyphs when we determine the selection of to-be-patched glyphs. As last resort for broken custom sets skip over glyphs that come out of order (which should be impossible). Fixes: #1005 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
[why] When a custom set is to be patched and that set contains the .notdef glyph the script crashes. [how] The glyphs has an unicode codepoint of -1, a code that we explicitely not patch. That leads to confusion when we try to determine the codepoint to be used for that glyph, because it has none. Exclude negative codepoint glyphs when we determine the selection of to-be-patched glyphs. As last resort for broken custom sets skip over glyphs that come out of order (which should be impossible). Fixes: ryanoasis#1005 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
🗹 Requirements
🎯 Subject of the issue
Experienced behavior:
I cannot patch the nerd font Meslo LGS Regular with the codicons package due to the following error:
File "/home/hristo/Documents/nerd-fonts/font-patcher.py", line 1427, in <module> main() File "/home/hristo/Documents/nerd-fonts/font-patcher.py", line 1407, in main patcher.patch(sourceFonts[-1]) File "/home/hristo/Documents/nerd-fonts/font-patcher.py", line 302, in patch self.copy_glyphs(SrcStart, symfont, patch['SymStart'], patch['SymEnd'], patch['Exact'], patch['ScaleGlyph'], patch['Name'], patch['Attributes']) File "/home/hristo/Documents/nerd-fonts/font-patcher.py", line 956, in copy_glyphs currentSourceFontGlyph = min(possible_codes) ^^^^^^^^^^^^^^^^^^^ ValueError: min() arg is an empty sequence
This is the command i use:
fontforge -script font-patcher.py MesloLGS\ NF\ Regular.ttf --custom codicon.ttf
And this is the structure of the directory as explained here
Expected behavior:
I expect to have a patched font being written in the directory.
Example symbols:
🔧 Your Setup
Anonymice Powerline Nerd Font Complete.ttf
)?iterm2
,urxvt
,gnome
,konsole
)?★ Screenshots (Optional)
I'm trying to set up the nvim-dap ui package which requires the codicons. This is what is currently being displaced with the wrong icons:
The text was updated successfully, but these errors were encountered: