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 |
Thanks!
Tested on Ubuntu 20.04 LTS
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
Tested on Debian 10 22.05.2020
Works great !
Thank you