Skip to content

Instantly share code, notes, and snippets.

@wangzhengyi
Forked from rogerleite/install_monaco_font.sh
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangzhengyi/be2fd3d67880b1e66e61 to your computer and use it in GitHub Desktop.
Save wangzhengyi/be2fd3d67880b1e66e61 to your computer and use it in GitHub Desktop.
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#if monaco dir not exists, then create it
if [ ! -d ttf-monaco ]; then
udo mkdir ttf-monaco
fi
cd ttf-monaco/
sudo wget http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf
#create an index of X font files in a directory
sudo mkfontdir
#go to parent folder /usr/share/fonts/truetype
cd ..
fc-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment