I installed a Nerd Font along with Starship to enhance my terminal’s appearance. While everything else works perfectly, the glyphs don’t display correctly. Interestingly, the same Starship configuration works fine on my local VS Code.
Adding @romannurik in case he has some ideas here on what may be going wrong.
Can you share:
(1) which specific patched font you installed
(2) confirmation that the font works in other apps besides your browser?
(3) what the value of your setting is (either for terminal.integrated.fontFamily
or editor.fontFamily
)
And lastly, have you tried restarting the browser? Sometimes newly installed fonts don’t get picked up right away, and I’m not sure if the screenshot above is actually rendering your nerd font without glyphs, or if it’s rendering a fallback monospace font which of course doesn’t have any of those glyphs.
1- I installed FiraCode
both by directly placing it in ~/.local/share/fonts
and using pkgs.fira-code-nerdfont
. Unfortunately, neither method worked.
2- The font works in the terminal of VS Code with an SSH remote to an Ubuntu server:
however, it doesn’t work when I SSH into the same server via Windows.
3- The terminal.integrated.fontFamily
setting is empty, so idx should use editor’s default font, which is Consolas, 'Courier New', monospace
. Immediately after setting it to FiraCode Nerd Font
, I get the following error:
The terminal only supports monospace fonts. Be sure to restart Code OSS if this is a newly installed font.
This issue occurs randomly after changes are made, and disabling, restarting, and re-enabling may or may not display it again.
Restarting the browser doesn’t help at all. Additionally, I’m puzzled as to why the default editor font in the user (not workspace) settings changes to JetBrains Mono, Menlo, Monaco, Courier New, monospace
after every browser restart. Even resetting the setting from the gear icon next to it reverts it to Consolas, 'Courier New', monospace
which means that this is the browser’s default.
Ah ok - can you try installing the font on your local machine? (the one with the browser installed). Installing the font into the VM won’t help here, as the UI is rendered in the host machine’s browser.
Thanks @romannurik I successfully resolved the issue by installing the font on my Windows machine. To set the font, simply add the following to the user or workspace settings of your browser:
"terminal.integrated.fontFamily": "FiraCode Nerd Font"
And one remaining question: Why does the default font reset every time the browser restarts?
Thanks for confirming! Regarding the font resetting, I’m not sure, I’m unable to reproduce that. Do any other user settings reset as well, such as color theme?
No, everything else remains consistent except for this specific setting. I don’t encounter this issue in VS Code with the exact same configuration.