Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ On other environments, you can copy and paste these commands to your terminal. C
cd ..
rm -rf fonts

Installing and Configuring Fonts on WSL Ubuntu
----------------------------------------------

If you are using WSL Ubuntu and experiencing issues with icons not showing correctly, follow these steps to install and configure fonts:

1. Install the necessary packages:
::
sudo apt-get update
sudo apt-get install fonts-powerline

2. Configure the font settings in your terminal emulator (e.g., Windows Terminal, Hyper, etc.) to use a Powerline font.

3. If the issue persists, try using the DejaVu or Sarasa Term SC fonts, as they have been reported to work correctly on WSL Ubuntu.

Uninstall
---------

Expand Down
6 changes: 6 additions & 0 deletions install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ prefix="$1"
if test "$(uname)" = "Darwin" ; then
# MacOS
font_dir="$HOME/Library/Fonts"
elif grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null ; then
# WSL Ubuntu
font_dir="$HOME/.local/share/fonts"
mkdir -p $font_dir
sudo apt-get update
sudo apt-get install -y fonts-powerline
else
# Linux
font_dir="$HOME/.local/share/fonts"
Expand Down
11 changes: 11 additions & 0 deletions samples/DejaVuSansMono.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
#DejaVuSansMono
![](https://cloud.githubusercontent.com/assets/8317250/7021756/221ca1b0-dd60-11e4-8e03-a3d0cd9595e3.png)

Note: If you are using WSL Ubuntu and experiencing issues with icons not showing correctly, follow these steps to install and configure fonts:

1. Install the necessary packages:
::
sudo apt-get update
sudo apt-get install fonts-powerline

2. Configure the font settings in your terminal emulator (e.g., Windows Terminal, Hyper, etc.) to use a Powerline font.

3. If the issue persists, try using the DejaVu or Sarasa Term SC fonts, as they have been reported to work correctly on WSL Ubuntu.