0

Intalling fonts on Linux .. quick and dirty way

Posted by sanjay on 1:25 AM
Quick and dirty steps to install fonts.. I keep forgetting the Yo Linux link. So I thought I'd put the steps down here and then link to the main page, so tthat I can do this quickly or correctly or both:)





  • create a ~/.fonts directory


  • copy your fonts into this directory


  • fc-list | grep font name to verify fonts are available


  • /usr/bin/font-cache to update the cache


  • chmod 644 *.ttf


  • ttmkfdir > fonts.scale

  • Create index of X font files in directory: /usr/X11R6/bin/mkfontdir
    (Red Hat 7.0: package freetype, 7.3+: package xorg-x11-font-utils)

  • Add font directory to the xfs config file: /etc/X11/fs/config

    catalogue = comma-separated-list-of-font-directories

  • Update font-config cache: /usr/bin/fc-cache


  • /usr/sbin/chkfontpath --add /font-directory-path


  • xset fp rehash


  • service xfs restart
    (or: /etc/init.d/xfs restart)

  • Restart X:


    • init 3


    • init 5


Refer to YoLinux for all details

0 Comments

Copyright © 2009 Note my web All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.