`
yaojingguo
  • 浏览: 202424 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Install PCF font on Ubuntu

阅读更多

Copy the font files to a directory that is visible to the x-server's

Font Path.  You may check the font path of the running server by

typing the command:

 

xset q

 

On my FreeBSD machine I chose /usr/X11R6/lib/X11/fonts/misc/ to hold

these new fonts.  Next, you need to update the index file 'fonts.dir'

by running 'mkfontdir'. Here's the command I used for my path:

 

mkfontdir /usr/X11R6/lib/X11/fonts/misc/

 

If you don't want to restart your X server, you can update your

current X session using:

 

xset fp rehash

 

Otherwise restarting X will also load the new fonts.  That's it, you're done.

 

=== Addendum ===

 

At least for Ubuntu Linux you need an extra step.

You must also add the font path using "xset fp+".

Here's a shell script that does the job:

    #!/bin/sh

    # rebuild font.dir file

    mkfontdir ~/.fonts

    # add .fonts to font path

    xset fp+ ~/.fonts

    # tell X to reread fonts

    xset fp rehash

 

 

sudo rm /etc/fonts/conf.d/70-no-bitmaps.conf 

 

Ref to http://www.proggyfonts.com/XWindowsFontInstall.txt.

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics