[arch-general] Unable to add fonts to X
I couldn't find a more appropriate place to ask this question. Please feel free to point me to such a place if one exists. ---- Using a completely up-to-date 32-bit arch system, I am trying to make some fonts available to X. My understanding of the process is: 1. Put the fonts in a directory. 2. Since these are scalable fonts, run mkfontscale in the directory. 3. Run mkfontdir in the directory. 4. run xset +fp <directory name> So what I did: 0. Created the directory ~/.fonts. 1. Put the fonts in ~/.fonts. At this point the contents of the directory looks like this (sorry about the wrapping): lrwxrwxrwx 1 n7dr users 39 Apr 22 17:08 CourierNewPSMTN7DR.ttf -> /home/n7dr/fonts/CourierNewPSMTN7DR.ttf 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 2. Ran mkfontscale in ~/.fonts. This created the file fonts.scale, which had the following contents: 33 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-adobe-standard CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ascii-0 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp437 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp850 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp852 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp866 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso10646-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-10 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-13 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-15 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-2 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-3 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-4 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-5 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-8 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-9 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-e CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-r CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-ru CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-u CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-uni CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-microsoft-cp1252 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252 3. Ran mkfontdir in ~/.fonts. This created the file fonts.dir, which was identical to fonts.scale. 4. One piece of documentation I read said that X automatically includes ~/.fonts in its path, but running xset q did not include ~/.fonts in the directory list. So I ran: xset +fp /home/n7dr/.fonts But now we come to the problem. This command returns: xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax But: a. the directory obviously exists, and it has permissions rwx for the user. b. The directory contains the file fonts.dir c. The syntax looks OK. So what is xset complaining about? (I suspect that the problem lies in the *contents* of fonts.dir, since if I create a dummy version of the file, I don't receive the error. But since the file was automatically created, I don't know what might be wrong, nor how to correct it. Maybe my suspicion is wrong, though.) Doc -- Web: http://www.sff.net/people/N7DR
On Tue, Apr 24, 2012 at 5:34 AM, D. R. Evans <doc.evans@gmail.com> wrote:
I couldn't find a more appropriate place to ask this question. Please feel free to point me to such a place if one exists.
----
Using a completely up-to-date 32-bit arch system, I am trying to make some fonts available to X.
My understanding of the process is:
1. Put the fonts in a directory. 2. Since these are scalable fonts, run mkfontscale in the directory. 3. Run mkfontdir in the directory. 4. run xset +fp <directory name>
So what I did:
0. Created the directory ~/.fonts. 1. Put the fonts in ~/.fonts.
At this point the contents of the directory looks like this (sorry about the wrapping):
lrwxrwxrwx 1 n7dr users 39 Apr 22 17:08 CourierNewPSMTN7DR.ttf -> /home/n7dr/fonts/CourierNewPSMTN7DR.ttf 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
2. Ran mkfontscale in ~/.fonts.
This created the file fonts.scale, which had the following contents:
33 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-adobe-standard CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ascii-0 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp437 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp850 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp852 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp866 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso10646-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-10 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-13 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-15 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-2 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-3 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-4 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-5 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-8 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-9 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-e CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-r CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-ru CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-u CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-uni CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-microsoft-cp1252 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
3. Ran mkfontdir in ~/.fonts.
This created the file fonts.dir, which was identical to fonts.scale.
4. One piece of documentation I read said that X automatically includes ~/.fonts in its path, but running xset q did not include ~/.fonts in the directory list.
So I ran: xset +fp /home/n7dr/.fonts
But now we come to the problem. This command returns:
xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax
But: a. the directory obviously exists, and it has permissions rwx for the user. b. The directory contains the file fonts.dir c. The syntax looks OK.
So what is xset complaining about?
(I suspect that the problem lies in the *contents* of fonts.dir, since if I create a dummy version of the file, I don't receive the error. But since the file was automatically created, I don't know what might be wrong, nor how to correct it. Maybe my suspicion is wrong, though.)
Doc
-- Web: http://www.sff.net/people/N7DR
There are no dot in /home/n7dr/fonts/ path. Should be /home/n7dr/.fonts/ -- Kirill Churin Jabber: reflexing@reflexing.ru
Add path to /etc/X11/xorg.conf ? Section "Files" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/OTF/" FontPath "/usr/share/fonts/Type1/" FontPath "/usr/share/fonts/100dpi/" FontPath "/usr/share/fonts/75dpi/" EndSection and exec mkfontdir;mkfontscale in ~/.fonts dir, finally exec fc-cache -fv On Tue, Apr 24, 2012 at 5:49 PM, Kirill Churin <reflexing@reflexing.ru>wrote:
On Tue, Apr 24, 2012 at 5:34 AM, D. R. Evans <doc.evans@gmail.com> wrote:
I couldn't find a more appropriate place to ask this question. Please feel free to point me to such a place if one exists.
----
Using a completely up-to-date 32-bit arch system, I am trying to make some fonts available to X.
My understanding of the process is:
1. Put the fonts in a directory. 2. Since these are scalable fonts, run mkfontscale in the directory. 3. Run mkfontdir in the directory. 4. run xset +fp <directory name>
So what I did:
0. Created the directory ~/.fonts. 1. Put the fonts in ~/.fonts.
At this point the contents of the directory looks like this (sorry about the wrapping):
lrwxrwxrwx 1 n7dr users 39 Apr 22 17:08 CourierNewPSMTN7DR.ttf -> /home/n7dr/fonts/CourierNewPSMTN7DR.ttf 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
2. Ran mkfontscale in ~/.fonts.
This created the file fonts.scale, which had the following contents:
33 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-adobe-standard CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ascii-0 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp437 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp850 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp852 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp866 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso10646-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-10 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-13 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-15 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-2 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-3 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-4 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-5 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-8 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-9 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-e CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-r CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-ru CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-u CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-uni CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-microsoft-cp1252 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
3. Ran mkfontdir in ~/.fonts.
This created the file fonts.dir, which was identical to fonts.scale.
4. One piece of documentation I read said that X automatically includes ~/.fonts in its path, but running xset q did not include ~/.fonts in the directory list.
So I ran: xset +fp /home/n7dr/.fonts
But now we come to the problem. This command returns:
xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax
But: a. the directory obviously exists, and it has permissions rwx for the user. b. The directory contains the file fonts.dir c. The syntax looks OK.
So what is xset complaining about?
(I suspect that the problem lies in the *contents* of fonts.dir, since if I create a dummy version of the file, I don't receive the error. But since the file was automatically created, I don't know what might be wrong, nor how to correct it. Maybe my suspicion is wrong, though.)
Doc
-- Web: http://www.sff.net/people/N7DR
There are no dot in /home/n7dr/fonts/ path. Should be /home/n7dr/.fonts/
-- Kirill Churin Jabber: reflexing@reflexing.ru
Kirill Churin said the following at 04/24/2012 03:49 AM :
So I ran: xset +fp /home/n7dr/.fonts
But now we come to the problem. This command returns:
xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax
But: a. the directory obviously exists, and it has permissions rwx for the user. b. The directory contains the file fonts.dir c. The syntax looks OK.
So what is xset complaining about?
There are no dot in /home/n7dr/fonts/ path. Should be /home/n7dr/.fonts/
I don't understand. The command was:
So I ran: xset +fp /home/n7dr/.fonts
so it did contain the correct path. Doc -- Web: http://www.sff.net/people/N7DR
Jianjun Mao said the following at 04/24/2012 04:03 AM :
Add path to /etc/X11/xorg.conf ?
There is no such file. There is a directory /etc/X11/xorg.conf.d, but it doesn't contain an xorg.conf either. (FWIW, I don't think that xorg.conf has been used for a couple of years in most distributions; I don't know about arch, but its absence strongly suggests that it isn't used in that distribution either, since X is working fine without it.) Doc -- Web: http://www.sff.net/people/N7DR
That's right... There's no xorg.conf in Ubuntu, either. But in arch, using X -configure to create the configuration file makes everything simpler? Of course this works fine in my laptop. On Tue, Apr 24, 2012 at 10:31 PM, D. R. Evans <doc.evans@gmail.com> wrote:
Jianjun Mao said the following at 04/24/2012 04:03 AM :
Add path to /etc/X11/xorg.conf ?
There is no such file.
There is a directory /etc/X11/xorg.conf.d, but it doesn't contain an xorg.conf either.
(FWIW, I don't think that xorg.conf has been used for a couple of years in most distributions; I don't know about arch, but its absence strongly suggests that it isn't used in that distribution either, since X is working fine without it.)
Doc
-- Web: http://www.sff.net/people/N7DR
Jianjun Mao said the following at 04/24/2012 08:43 AM :
That's right... There's no xorg.conf in Ubuntu, either. But in arch, using X -configure to create the configuration file makes everything simpler? Of course this works fine in my laptop.
I tried X -configure and received this response: ---- X.Org X Server 1.12.1 Release Date: 2012-04-13 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.3.1-1-ARCH i686 Current Operating System: Linux shack 3.3.2-1-ARCH #1 SMP PREEMPT Sat Apr 14 10:08:43 UTC 2012 i686 Kernel command line: root=/dev/disk/by-uuid/04611735-3010-419b-8755-dd7dfe4b371b ro Build Date: 14 April 2012 07:32:51AM Current version of pixman: 0.24.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr 24 17:08:58 2012 List of video drivers: openchrome vesa (++) Using config file: "/root/xorg.conf.new" (==) Using config directory: "/etc/X11/xorg.conf.d" Number of created screens does not match number of detected devices. Configuration failed. Server terminated with error (2). Closing log file. ---- Perhaps the fact that I have to use VNC-over-ssh to reach the system in question is causing a problem? In any case, no file xorg.conf is being created when I execute "X -configure". I can access and use these fonts just fine in applications (such as the xfce desktop settings), so it's very frustrating that making them directly accessible to X is for some reason proving so difficult :-( Doc -- Web: http://www.sff.net/people/N7DR
Any more thoughts as to how I can add these fonts? Or at least diagnose why I receive error #37 when I try to add them? Or where there is an X-specific mailing reflector where I can ask this question? I can't progress with my project until these fonts are working under X :-( Doc ---- D. R. Evans said the following at 04/23/2012 05:34 PM :
I couldn't find a more appropriate place to ask this question. Please feel free to point me to such a place if one exists.
----
Using a completely up-to-date 32-bit arch system, I am trying to make some fonts available to X.
My understanding of the process is:
1. Put the fonts in a directory. 2. Since these are scalable fonts, run mkfontscale in the directory. 3. Run mkfontdir in the directory. 4. run xset +fp <directory name>
So what I did:
0. Created the directory ~/.fonts. 1. Put the fonts in ~/.fonts.
At this point the contents of the directory looks like this (sorry about the wrapping):
lrwxrwxrwx 1 n7dr users 39 Apr 22 17:08 CourierNewPSMTN7DR.ttf -> /home/n7dr/fonts/CourierNewPSMTN7DR.ttf 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
2. Ran mkfontscale in ~/.fonts.
This created the file fonts.scale, which had the following contents:
33 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-adobe-standard CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ascii-0 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp437 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp850 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp852 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp866 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso10646-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-10 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-13 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-15 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-2 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-3 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-4 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-5 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-8 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-9 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-e CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-r CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-ru CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-u CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-uni CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-microsoft-cp1252 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
3. Ran mkfontdir in ~/.fonts.
This created the file fonts.dir, which was identical to fonts.scale.
4. One piece of documentation I read said that X automatically includes ~/.fonts in its path, but running xset q did not include ~/.fonts in the directory list.
So I ran: xset +fp /home/n7dr/.fonts
But now we come to the problem. This command returns:
xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax
But: a. the directory obviously exists, and it has permissions rwx for the user. b. The directory contains the file fonts.dir c. The syntax looks OK.
So what is xset complaining about?
(I suspect that the problem lies in the *contents* of fonts.dir, since if I create a dummy version of the file, I don't receive the error. But since the file was automatically created, I don't know what might be wrong, nor how to correct it. Maybe my suspicion is wrong, though.)
Doc
-- Web: http://www.sff.net/people/N7DR
Hi. Try one of this : 1) create link to font folder inside /etc/X11/fontpath.d , restart X 2) copy/link font folder to /usr/share/fonts , restart X 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' and as usually 4) avoid topposting ;) Option 3 should work immediately, without restarting X... Regards, Slawek -- ________ _/ __/ __/ Fnord. \__ \__ \_______________________________________________________________ /___/___/ Sławomir Szczyrba steev(AT)hot.pl Dnia Wed, 25 Apr 2012 08:56:33 -0600 "D. R. Evans" <doc.evans@gmail.com> napisał(a):
Any more thoughts as to how I can add these fonts? Or at least diagnose why I receive error #37 when I try to add them?
Or where there is an X-specific mailing reflector where I can ask this question?
I can't progress with my project until these fonts are working under X :-(
Doc
----
D. R. Evans said the following at 04/23/2012 05:34 PM :
I couldn't find a more appropriate place to ask this question. Please feel free to point me to such a place if one exists.
----
Using a completely up-to-date 32-bit arch system, I am trying to make some fonts available to X.
My understanding of the process is:
1. Put the fonts in a directory. 2. Since these are scalable fonts, run mkfontscale in the directory. 3. Run mkfontdir in the directory. 4. run xset +fp <directory name>
So what I did:
0. Created the directory ~/.fonts. 1. Put the fonts in ~/.fonts.
At this point the contents of the directory looks like this (sorry about the wrapping):
lrwxrwxrwx 1 n7dr users 39 Apr 22 17:08 CourierNewPSMTN7DR.ttf -> /home/n7dr/fonts/CourierNewPSMTN7DR.ttf 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
2. Ran mkfontscale in ~/.fonts.
This created the file fonts.scale, which had the following contents:
33 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-adobe-standard CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ascii-0 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp437 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp850 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp852 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-ibm-cp866 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso10646-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-1 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-10 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-13 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-15 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-2 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-3 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-4 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-5 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-8 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-iso8859-9 CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-e CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-r CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-ru CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-u CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-koi8-uni CourierNewPSMTN7DR.ttf -monotype-courier new n7dr-medium-r-normal--0-0-0-0-m-0-microsoft-cp1252 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
3. Ran mkfontdir in ~/.fonts.
This created the file fonts.dir, which was identical to fonts.scale.
4. One piece of documentation I read said that X automatically includes ~/.fonts in its path, but running xset q did not include ~/.fonts in the directory list.
So I ran: xset +fp /home/n7dr/.fonts
But now we come to the problem. This command returns:
xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax
But: a. the directory obviously exists, and it has permissions rwx for the user. b. The directory contains the file fonts.dir c. The syntax looks OK.
So what is xset complaining about?
(I suspect that the problem lies in the *contents* of fonts.dir, since if I create a dummy version of the file, I don't receive the error. But since the file was automatically created, I don't know what might be wrong, nor how to correct it. Maybe my suspicion is wrong, though.)
Doc
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
Dnia Wed, 25 Apr 2012 12:40:23 -0600 "D. R. Evans" <doc.evans@gmail.com> napisał(a):
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
What says fc-list? Well, here's a hard way (just tested) As root : - copy afm & pfb files to /usr/share/fonts/Type1 - backup fonts.scale & fonts.dir - run mkfontscale - run mkfontdir (ttf fonts - same procedure, /usr/share/fonts/TTF ) - run xset fp rehash ( besides this, You can always convert this font to ttf :/ ) Regards, Slawek -- ________ 30 zdań, ktore może powiedzieć kobieta nagiemu mężczyźnie : _/ __/ __/ 17. Przynajmniej długo to nie zajmie. \__ \__ \_______________________________________________________________ /___/___/ Sławomir Szczyrba steev(AT)hot.pl
Sławomir Szczyrba said the following at 04/25/2012 02:14 PM :
What says fc-list?
I'll spare you the entire output (unless you really want it). It includes these lines: Courier New N7DR:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta Computer Modern N7DR:style=Medium which are the two fonts I'm trying to add to X. I decided just to try to add the Type1 font first. Once that's working I can do the TTF font.
Well, here's a hard way (just tested)
As root : - copy afm & pfb files to /usr/share/fonts/Type1
There is no /usr/share/fonts/Type1. Is is OK to just create it and then perform the other steps? Will X automatically look in /usr/share/fonts/Type1 if I create that directory?
- copy afm & pfb files to /usr/share/fonts/Type1 - backup fonts.scale & fonts.dir - run mkfontscale - run mkfontdir
I did these steps, after creating /usr/share/fonts/Type1. fonts.dir looks like this: 10 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252 Then I execute, as root: xset fp rehash Then I ran "xlsfonts | grep n7dr" but still got no hits :-( I don't know if it's relevant, but I see that the output from xlsfonts is MUCH longer when I run the command as root than when I run as an ordinary user. But neither root nor the ordinary user see the n7dr fonts. I see that there is a space in the names in the fonts.dir file. For example, one of the lines is: N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard That doesn't look right. Surely it should say ...computer-modern-n7dr... shouldn't it? I don't know how the name is generated (presumably that's part of mkfontscale?) but it looks to me like the generated name is invalid. Looking back at my original posting, I see that *all* the font names in the fonts.scale and fonts.dir files contain spaces. Perhaps that's been the problem all the time. What do you think? Perhaps it's a bug in mkfontscale? Doc -- Web: http://www.sff.net/people/N7DR
Dnia Thu, 26 Apr 2012 16:45:18 -0600 "D. R. Evans" <doc.evans@gmail.com> napisał(a): [...]
That doesn't look right. Surely it should say ...computer-modern-n7dr... shouldn't it? I don't know how the name is generated (presumably that's part of mkfontscale?) but it looks to me like the generated name is invalid.
No, spaces area acceptable. What says 'xset -q | grep "Font Path" -A1' ?
Doc
Regards, Slawek -- ________ Zapewne wspaniałego wynalazku o nazwie Active Desktop też _/ __/ __/ nie masz? Pogrążam się w szczerym bólu ;-) -- Pszemol \__ \__ \_______________________________________________________________ /___/___/ Sławomir Szczyrba steev(AT)hot.pl
D. R. Evans said the following at 04/26/2012 04:45 PM :
I decided just to try to add the Type1 font first. Once that's working I can do the TTF font.
Well, here's a hard way (just tested)
As root : - copy afm & pfb files to /usr/share/fonts/Type1
There is no /usr/share/fonts/Type1. Is is OK to just create it and then perform the other steps? Will X automatically look in /usr/share/fonts/Type1 if I create that directory?
- copy afm & pfb files to /usr/share/fonts/Type1 - backup fonts.scale & fonts.dir - run mkfontscale - run mkfontdir
I did these steps, after creating /usr/share/fonts/Type1.
fonts.dir looks like this:
10 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-adobe-standard N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-ascii-0 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso10646-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-1 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-15 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-iso8859-9 N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-r N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-ru N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-koi8-u N7DR_SFTT1000.pfb -misc-computer modern n7dr-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
Then I execute, as root: xset fp rehash
Then I ran "xlsfonts | grep n7dr" but still got no hits :-(
I rebooted, and now this font is present and usable by X! Yay! So I tried the same with the TTF font: I added the .ttf file to /usr/share/fonts/TTF (which already exists and contains some .ttf fonts), then ran mkfontscale and mkfontdir (as root, obviously). I checked the paths with xset q (as ordinary user) ---- Font Path: /usr/share/fonts/misc/,/usr/share/fonts/75dpi/,/usr/share/fonts/100dpi/,/usr/share/fonts/Type1/ ---- So /usr/share/fonts/TTF isn't in my font path. So I tried: xset +fp /usr/share/fonts/TTF And got: ---- xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax ---- The directory /usr/share/fonts/TTF does exist, its permissions look OK (any user can read it and all the files in it), and there is a fonts.dir file. So we're halfway (having added the Type 1 font) but that one didn't require me to add a new font directory, which is the step that always seem to cause trouble. I could try moving the .ttf font to /usr/share/fonts/misc, I suppose, but that seems like a kludge. I wish that xset provided a more informative error message. Doc -- Web: http://www.sff.net/people/N7DR
D. R. Evans said the following at 05/02/2012 12:48 PM :
So /usr/share/fonts/TTF isn't in my font path.
So I tried:
xset +fp /usr/share/fonts/TTF
And got:
---- xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax
----
The directory /usr/share/fonts/TTF does exist, its permissions look OK (any user can read it and all the files in it), and there is a fonts.dir file.
So we're halfway (having added the Type 1 font) but that one didn't require me to add a new font directory, which is the step that always seem to cause trouble. I could try moving the .ttf font to /usr/share/fonts/misc, I suppose, but that seems like a kludge. I wish that xset provided a more informative error message.
Is there some complete and current documentation about X and fonts in arch somewhere? There seem to be extensive discussions about fontconfig, but nothing I've seen explains whether that has anything to do with X, so it's horribly confusing to someone trying to understand how fonts are supposed to work. Neither can I find any explanation of why "xset +fp" is giving error #37, even though the fonts.dir file looks fine. I never thought that simply adding a font could be so difficult. Perhaps I am simply doing something wrong, but I have no idea what. Doc -- Web: http://www.sff.net/people/N7DR
Did you have any luck solving this? I am having a very similar problem. Fonts that loaded at one time, no longer load. JC
On Fri, Sep 28, 2012 at 12:53 PM, j.c.coleman <jccoleman3@gmail.com> wrote:
Did you have any luck solving this? I am having a very similar problem. Fonts that loaded at one time, no longer load.
JC
What was the original problem?
participants (6)
-
D. R. Evans
-
j.c.coleman
-
Jianjun Mao
-
Kirill Churin
-
Martín Cigorraga
-
Sławomir Szczyrba