8

How can I download and install the Roboto Mono font on Ubuntu?

This is the font I am referring to:

https://fonts.google.com/specimen/Roboto+Mono

It is a monospaced version of the Roboto fonts.

The above page does not have a download link, and the fonts-roboto package only contains the proportional Roboto fonts, so I cannot use this duplicate here...

3

3 Answers 3

9

Go to this link and click on SELECT THIS FONT. Then a dialog box appears from bottom of the page. Click on that dialog box and then hover on Download icon in the top-right corner of that dialog box. It will open a small dialog box in which you get the following options(links) :-

Use SkyFonts and Download

enter image description here

Click on Download option. It downloads a file named Roboto_Mono.zip. Go to your Downloads folder and extract that zip file. It will create a folder named Roboto_Mono. Open this folder. Inside it, you will find different .ttf files.

enter image description here

Click on each of them(one-by-one) to open it in Font Viewer and then click on Install button in the top-right corner.

Following this procedure, you will have Roboto Mono installed on your Ubuntu system.

9

You can download the .ttf files from the Roboto Mono git repo and put them in /usr/share/fonts/truetype/robotomono with this command:

sudo wget --content-disposition -P /usr/share/fonts/truetype/robotomono https://github.com/googlefonts/RobotoMono/tree/main/fonts/ttf/RobotoMono-{Bold,BoldItalic,Italic,Light,LightItalic,Medium,MediumItalic,Regular,Thin,ThinItalic}.ttf?raw=true

--content-disposition is to accept the file name from github.com (otherwise the files would have .ttf?raw=true at the end, instead of just .ttf) and -P is to tell wget which directory to save the results (the directory and any sub-directories you need to create will be created automatically)

3
  • 1
    it's a good one - I can see the font with fc-cache , but XFCE-terminal4 doesn't want to see it ! :D
    – wuxmedia
    Oct 12, 2019 at 18:31
  • the answer is somekind beginer-friendly but I really like your answer, so fast (Y)
    – Luke
    Sep 24, 2020 at 3:23
  • 1
    @Luke the real answer would be to contribute an install script to Debian, so then people could just do sudo apt install fonts-roboto-mono Sep 24, 2020 at 4:20
0

This should do: apt-get install fonts-roboto

Another command for some other fonts of interest:

apt-get install fonts-lato fonts-open-sans fonts-roboto fonts-mononoki

1
  • At least in Ubuntu 20.04, the fonts-roboto package doesn't contain the monospace variant, so this answer doesn't do what the OP wants. Aug 3, 2022 at 20:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.