Created
September 30, 2018 02:30
-
-
Save sigoden/d01ad118da677f796bab01781b7eae23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
How can I add this to Visual Studio Code.. "Consolas" is not working.
Try adding "YaHei Consolas Hybrid"
Worked even in 2023!! Thanks ❤️
Fun fact, if you are on RHEL, Rocky, Fedora or Oracle Linux,
the same commands work as long as you run :
sudo yum install xorg-x11-font-utils
How do i apply this on xfce4-terminal? the terminal only shows fc-list :mono
fonts
Working is confirmed on Ubuntu 22.04 LTS
VSCode should have 'YaHei Consolas Hybrid'
not 'consolas'
as font setting.
the tilde character looks bad :( switched off because of it...
not the same in the regular consolas font though.
Works perfectly fine on Ubuntu 22.04 LTS. Thanks a lot!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested on Ubuntu 22.04.02 LTS
works perfectly!