diff --git a/README.rst b/README.rst index 9d2b707d..c60e7ca4 100644 --- a/README.rst +++ b/README.rst @@ -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 --------- diff --git a/install.sh b/install.sh old mode 100755 new mode 100644 index eab1ccd0..b73d7a65 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/samples/DejaVuSansMono.md b/samples/DejaVuSansMono.md index 2d66b667..c7542792 100644 --- a/samples/DejaVuSansMono.md +++ b/samples/DejaVuSansMono.md @@ -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.