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.

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值