manac ham chơi

8 January, 2007

Install True Type Fonts: Using a Font Server

Filed under: linux-unix — manac @ 2:15 pm

You can add your own fonts and sharing them by putting them into /usr/local/share/fonts/truetype. You need to run a couple of commands to make them available to X:
# cd /usr/local/share/fonts
# mkdir truetype
# chmod go+rx truetype
# cd truetype
# wget http://www.children2children.net/promos/fonts/kidprint.zip
# unzip kidprint.zip
# rm kidprint.zip
# mkfontscale (or ttmkfdir -o fonts.scale ?????)
# mkfontdir

You need to add the path to the catalogue entry in /etc/X11/fs/config:
/usr/local/share/fonts/truetype/

A couple of other paths that should also be included there for the defoma package managed fonts to be available are:
/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: