Skip to content

Instantly share code, notes, and snippets.

@webcat12345
Forked from sigoden/install-consolas-ubuntu
Created June 10, 2021 15:26
Show Gist options
  • Save webcat12345/fb988f08d8651ac0bef2c88b5a246ba4 to your computer and use it in GitHub Desktop.
Save webcat12345/fb988f08d8651ac0bef2c88b5a246ba4 to your computer and use it in GitHub Desktop.
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip
unzip /tmp/YaHei.Consolas.1.12.zip
sudo mkdir -p /usr/share/fonts/consolas
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf
cd /usr/share/fonts/consolas
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment