You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.7 KiB

10 years ago
---
layout: post
status: publish
published: true
title: How to add fonts in Linux manually
author:
display_name: ''
login: ''
email: ''
url: ''
wordpress_id: 555
wordpress_url: http://blog.10ninox.com/2009/04/02/how-to-add-fonts-in-linux-manually/
date: '2009-04-02 02:56:50 +0700'
date_gmt: '2009-04-02 07:56:50 +0700'
categories:
- linux
tags: []
---
<p>Well, fonts are the weakest link in Linux in my opinion. Sharpness, crispness, or smoothness are just not right. That’s most likely to be the reason why Linux never gains that much user like Windows or even Mac in desktop environment.</p>
<p>Besides using package manager which is truly find and click, when you are going to add fonts in Linux by yourself, you should put in <em>fontpath</em>. They are in /usr/share/fonts or /usr/local/share/fonts or ~/.fonts/ then what you have to do is copying.</p>
<p class="codebox">$ cp *.ttf ~/.fonts/</p>
<p>At this point, it will not notice the change yet. New fonts will not be visible. You have to run command, to update and rebuild its of fonts first.</p>
<p class="codebox">$ fc-cache</p>
<p>That would be it. However, if you decide to put fonts in somewhere else, you have to edit ‘fonts.conf’ to add font directory in the list as well.</p>
<p class="codebox">$ vi /etc/fonts/fonts.conf</p>
<p>Where &lt;!--- font directory list –&gt; is by adding</p>
<p class="codebox">&lt;dir&gt;/opt/fonts/xxxx&lt;/dir&gt;</p>
<p>Then rebuild the list and restart x (easiest way is Ctrl + Alt + Backspace). At this point, all fonts will be available to use =) Anyway, I still don’t think font smoothing or crispness in Linux is good enough so far. If that day comes, I bet Linux will outpace Mac and Windows in desktop environment surely.</p>