Re: Unable to add fonts to X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Sławomir Szczyrba said the following at 04/25/2012 09:23 AM :
> Hi. Try one of this :
> 
> 1) create link to font folder inside /etc/X11/fontpath.d , restart X

There is no extant /etc/X11/fontpath.d. So what I did:

0) create /etc/X11/fontpath.d (as root)

1) inside /etc/X11/fontpath.d:
  ln -s /home/n7dr/.fonts home-n7dr-.fonts (as root)

Restarted X (actually, rebooted)

> 2) copy/link font folder to /usr/share/fonts , restart X

2) Inside /usr/share/fonts:
  ln -s /home/n7dr/.fonts home-n7dr-.fonts (as root)

Restarted X (actually, rebooted)

> 3) copy font folder to ~/.fonts then do fc-cache -rv and check output 
> for line like '/home/n7dr/.fonts/n7dr: caching, new cache contents: 33 
> fonts, 0 dirs'

A bit unsure about this, since the font folder *is* ~/.fonts, so I think I
just skip the step "copy font folder to ~/.fonts".

So I executed "fc-cache -rv" (as root) and the line you suggest actually says:
  /home/n7dr/.fonts: caching, new cache contents: 2 fonts, 0 dirs

So there are two differences:

1. It says "/home/n7dr/.fonts", not "/home/n7dr/.fonts/n7dr" (perhaps that
was a typo on your part, since there is no directory /home/n7dr/.font/n7dr)

2. It says "2 fonts" not "33 fonts"

Executing xlsfonts (as ordinary user) still does not list the fonts as
available to me.

I did not at any point change the contents of /home/n7dr/.fonts, so it
still looks like this:

total 16
drwxr-xr-x 2 n7dr users 4096 Apr 23 17:12 .
drwx------ 34 n7dr users 4096 Apr 25 12:14 ..
lrwxrwxrwx 1 n7dr users 39 Apr 22 17:08 CourierNewPSMTN7DR.ttf ->
/home/n7dr/fonts/CourierNewPSMTN7DR.ttf
-rwxrwxrwx 1 n7dr users 2896 Apr 23 17:13 fonts.dir
-rwxrwxrwx 1 n7dr users 2896 Apr 23 17:12 fonts.scale
lrwxrwxrwx 1 n7dr users 34 Apr 22 17:08 N7DR_SFTT1000.afm ->
/home/n7dr/fonts/N7DR_SFTT1000.afm
lrwxrwxrwx 1 n7dr users 34 Apr 22 17:08 N7DR_SFTT1000.pfb ->
/home/n7dr/fonts/N7DR_SFTT1000.pfb

Sorry about the wrapping in that output; Thunderbird no longer seems to
support changing the wrap column for anindividual e-mail :-(

  Doc

-- 
Web:  http://www.sff.net/people/N7DR

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux