-
-
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 |
Tried it in Linux Mint 19.3 and it worked perfectly fine! thank you very much
This works great, thanks so much!
Still works as of September, thanks!
This is the stranges and most wholesome little gist 👍
Still works as of September, thanks!
Hi, I have downloaded with the commands above,
How can I implement in Ubuntu?
Could you please help me?
Thanks in advance !
Still works as of September, thanks!
Hi, I have downloaded with the commands above,
How can I implement in Ubuntu?
Could you please help me?
Thanks in advance !
try this:
https://linuxconfig.org/how-to-install-fonts-on-ubuntu-20-04-focal-fossa-linux
Thanks, It works well on Linux Mint 20 Ulyana!!
How can I add this to Visual Studio Code.. "Consolas" is not working.
it works on Oracle Linux 7 thanks!
How can I add this to Visual Studio Code.. "Consolas" is not working.
Try adding "YaHei Consolas Hybrid"
How can I add this to Visual Studio Code.. "Consolas" is not working.
Try adding "YaHei Consolas Hybrid"
nICe !!!!
thank you so much~
how can i add consolas to python fpdf font ?
thank you very much.Tested on
Linux work 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Also, to use as a fallback font for Consolas create this font config file:
~/.config/fontconfig/conf.d/20-consolas.conf
------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<description>USe Yahei Consolas when Consolas is requested</description>
<match target="pattern">
<test qual="any" name="family"><string>Consolas</string></test>
<edit name="family" mode="assign" binding="same"><string>YaHei Consolas Hybrid</string></edit>
</match>
</fontconfig>
Works 20.04 as of today :)
Tested on Ubuntu 20.10 LTS
Works well
Thank you
Thank you
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.
Thanks!
Tested on Ubuntu 20.04 LTS