-
-
Save sigoden/d01ad118da677f796bab01781b7eae23 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 |
Tested in Zorin OS 16, works great!
Works on Manjaro Xfce
Thank you a lot!
Still works.
Still work on ubuntu20.04
Sep,2022
Tested on Ubuntu 22.04.02 LTS
works perfectly!
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!
broken cyrillic