Consolas Font On Ubuntu
Consolas is a nice to have font for programming. It is available by default on all versions(after win XP) of windows operating systems. If you are on Linux and want to use this font, the following are few easy ways to get it.
Before we move further have “font Manager” and “cabextract” installed on your ubuntu box.
sudo apt-get install font-manager |
sudo apt-get install cabextract |
Option 1:
If you could get your hands on any windows machine, go to C:\Windows\Fonts folder and just copy the consolas font onto any removable media. Copy that font file on the linux machine(no specific location, can do it anywhere) and install it using “Font Manager” application.
Option 2:
This procedure involves running the following script. The script downloads the powerpointviewer executable from the microsoft site and extracts it’s contents. After the extraction you just have to install consolas font from the extracted folder. The extracted folder has other files and fonts, you could install all the fonts if you wish and delete the folder.
Create a file named consolas.sh on your desktop and copy paste the following contents into that file:
#!/bin/sh set -e set -x mkdir temp cd temp wget http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe cabextract -L -F ppviewer.cab PowerPointViewer.exe cabextract ppviewer.cab |
Use Ctrl+Alt+T shortcut to open the terminal, change the directory on the command line to Desktop
now execute the shell script using the following command:
bash consolas.sh |
after the program runs successfully, you can open the temp folder on the Desktop and install the fonts using font manager application. Happy coding 🙂
Helder Velez
Awsome. Clear and concise post, that helped a lot.
‘Obrigado’.
Kuroisuna
Thanks! This help me a lot!
Anders
Just what I needed to get my Consolas.
Copied consola(-, b, i, z).ttf from C:\windows\fonts and used font-manager as told to pick the Consola.ttf file. That installed the others as well.
Won’t necessarily be treated as a mono space font set, though, had to disable that filter.
Paulo Chaves
Thanks! Very good!
This post help me a lot!
Shashank Sharma
Thank you so much for sharing this. Was looking for installing consolas on ubuntu.
Aaron
Awesome – powerpoint lol!! Good job
Aaron
thankyou! #2 with Powerpoint – lol!
Blessings mwafulirwa
used option 2 and it worked like a charm..thanks so much for the info was looking for this all over
Arnaud Ungaro
Thanks! =)
Alexander
Thank you very much!
Sreenath
Thanks a lot!!
JohnG
Perfect thanks.
Now Sublime text looks the same as on other platforms.
James Hirschorn
Brilliant! Thanks!
Kalina
Thank you so, so much! Was really helpful!
Josue
Thanks a lot!
Just a man
Thanks
DarkteK
Thx so much! 😀
qss
doesn’t work anymore
Rayan Ramos
Is not working.
Response after execute command “bash consolas.sh”:
+ mkdir temp
+ cd temp
+ wget http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe
--2019-05-23 10:53:30-- http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe
Resolvendo download.microsoft.com (download.microsoft.com)... 23.32.32.42, 2600:1419:3c00:184::e59, 2600:1419:3c00:190::e59
Conectando-se a download.microsoft.com (download.microsoft.com)|23.32.32.42|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 404 Not Found
2019-05-23 10:53:31 ERRO 404: Not Found.
Michael Ziluck
To get this working change the url after the wget command to be the following: https://phoenixnap.dl.sourceforge.net/project/mscorefonts2/cabs/PowerPointViewer.exe
artik
thanks for sharing a working direct link url for the required “PowerPointViewer.exe”
and to think, I almost said forget it. lol