Super User Asked on November 18, 2021
I’m trying to use the Linux subsystem for windows (a bit of an adventure for me not knowing Linux). I’ve installed starship.rs and noticed I’ve got a number of badly rendering symbols. I’ve read that I need a powerline font so I’ve tried installing them and firacode (my preference).
I’ve however found that even after doing so I’m still getting errors rendering the characters.
Does anyone know what I might be missing? Ultimately I want to be able to swap out my git-bash for bash (in linux) within ConEmu if it’s relevant.
How I solved this:
2.1) Open "Powershell", "Ubuntu" (or another WSL-distro), then right-click -> Properties -> Font -> Change font to "Sauce Code Pro Nerd Font".
2.2) If you use Windows Terminal. Open it -> "Ctrl+," -> find an attribute "profiles{...} -> defaults{...} -> add to "defaults" an attribute "fontFace": "SauceCodePro Nerd Font" to apply the font to all profiles or choose a profile from "list" and type the same to apply only to the given profile (e.x. "Cascadia Code PL" for Powershell, "SauseCode Pro Nerd Font" for Ubuntu).
Optional. Open VSCode -> Ctrl+, -> fontFamily: type "SauseCodePro Nerd Font" before other fonts.
You can do this with other fonts, but they need to support a powerline glyphs, e.g. "Mononoki" font.
Answered by Adilet Soronov on November 18, 2021
If you want to setup fonts in your WSL, you need to setup fonts in the host system, namely Windows.
Key points were in setup all powerline fonts in the host system; I noticed what some people tried to install .install.ps1
(PowerShell) the script of this powerline repo in WSL, but its script must be run in Windows PowerShell.
You have to change the execution policy on Windows 10. I tried setup on base this article, and it works.
And so, you can just install fonts manually and not have all problems.
Don't forget to apply font for WSL in settings.json
I also noticed that some ligatures work very badly or don't render at all.
Updated info: https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
Answered by Dmitry S. on November 18, 2021
TLDR; You need to install windows host and configure Powerline fonts bash gui properties.
found info here
you actually need to install these fonts in Windows and set the console host font to one of them.
Next open bash and click the icon in the upper left corner and select Properties. Change to the Font tab and select one of the patched fonts you just installed. They will all say "for Powerline" so just pick one of those.
Answered by Devidas on November 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP