ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
54.57k stars 3.65k forks source link

Icons rendering/showing properly in VSCode integrated terminal, but not in standalone PowerShell #1388

Closed tusan-tsvetkoff closed 1 year ago

tusan-tsvetkoff commented 1 year ago

🎯 Subject of the issue

Experienced behavior: Running ls inside VsCode's integrated terminal: image

Running ls inside my PowerShell (in the same directory): image

I should also note that nvim's webdevicons are having the same behavior in Neovim, as in, not displaying properly (<?> instead of that actual glyph/icon).

What I've concluded is that it seems to be related to all the md glyphs. I've also made sure to update oh-my-posh, as well as running this command oh-my-posh config migrate glyphs --write

Expected behavior:

Ideally, the '<?>' icons in PowerShell should be whatever they are in VsCode's integrated terminal, which is also running PowerShell as far as I am concerned.

Example symbols:

From PowerShell: 󰪷 README.md 󰙨 tests <- directory

From VsCode's terminal: 󰪷 README.md 󰙨 tests

🔧 Your Setup

★ Screenshots (Optional)

From within PowerShell: image

Properties: image

tusan-tsvetkoff commented 1 year ago

Apparently I am a bit of an idiot. Had never installed the Windows Terminal from the Windows Store. Installed it and fixed all my issues.

Finii commented 1 year ago

The non-WindowsTerminal terminals (i.e. cmd and the like) are not able to display 5 digit unicode codepoints, due to the software design. Microsoft uses UTF16 internally (instead of the now ubiquitous UTF8) but only 1 wchar_t value per character, so ...

A nice explanation can be found here: https://devblogs.microsoft.com/commandline/windows-command-line-unicode-and-utf-8-output-text-buffer/

image

The way to go is to use Windows Terminal (as you found out), the modern alternative.

github-actions[bot] commented 6 months ago

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.