Showing posts with label fonts. Show all posts
Showing posts with label fonts. Show all posts

Ubuntu - Install Source Code Pro

Source Code Pro is a font from Adobe that looks amazingly similar to Droid Sans Mono to me, except that it has a larger space between lines which I quite like in my gnome-terminal where the line-height cannot be adjusted.

Installation Script

To install the font in Ubuntu, simply execute the following script

#!/bin/bash
FONT_NAME="SourceCodePro"
URL="https://github.com/adobe-fonts/source-code-pro/archive/1.017R.tar.gz"

mkdir /tmp/$FONT_NAME
cd /tmp/$FONT_NAME
wget $URL -O "`echo $FONT_NAME`.tar.gz"
tar --extract --gzip --file ${FONT_NAME}.tar.gz
sudo mkdir /usr/share/fonts/truetype/$FONT_NAME
sudo cp -rf /tmp/$FONT_NAME/. /usr/share/fonts/truetype/$FONT_NAME/.
fc-cache -f -v

References

Ubuntu 14 Desktop - Install Fira Sans And Fira Mono Fonts

Mozilla has created its own font family, Fira Sans and Fira Mono. Something that makes the mono font fairly useful/unique is that it appears to have a lot of vertical spacing. This means it could be a "workaround" for the fact that you cannot set line spacing in gnome terminal.

Install

Run the command below and it will do everything for you.

wget -O - http://pastebin.com/raw.php?i=f89cQkcV | tr -d '\r' | sudo bash

References

Ubuntu - Install Microsoft Fonts

The following command will install microsoft fonts on Ubuntu 12.04 and Ubuntu 14.04

sudo apt-get install msttcorefonts && sudo fc-cache -fv