[narfi@dhcp-104-6 Mail]$ rpm -q XFree86 XFree86-xfs kdebase drakxtools XFree86-4.2.0-8mdk XFree86-xfs-4.2.0-8mdk kdebase-2.2.2-86mdk drakxtools-1.1.7-91mdk
I installed 8.2 beta4, with English as a primary language and Japanese, Icelandic and German as secondary languages. I've upgraded everything to cooker. I'm in runlevel 5 with en_US as my locale, working in KDE. Critial point in setup: I'm using anti-aliasing in KDE Summary: I start with a clean drakfont/ttf and drakfont/Type1 directory. Then I choose to import a single ttf font, verdana.ttf, using drakfont. It does not show up in the KDE font selection dialog. Additionally, I tried to run ttmkfdir and mkfdir in drakfont/ttf and restart xfs, but I still can't see Verdana in the KDE font selection dialog. Summary of fix: If I copy verdana.ttf to /usr/share/fonts/ttf/western/, run ttmkfdir, mkfdir and xftcache there and restart xfs, I can then select Verdana in the KDE font selection dialog. My guess: For some reason, KDE does not look for fonts the directory /usr/X11R6/lib/X11/fonts/drakfont/ttf. Please ask if you have more questions. Narfi. Detailed list of commands: # First import using drakfont. # Then the /usr/X11R6/lib/X11/fonts/drakfont/ttf/fonts.dir file is empty (!). # Recreate everything in drakfont/ttf: [root@dhcp-104-6 western]# cd /usr/X11R6/lib/X11/fonts/drakfont/ttf/ [root@dhcp-104-6 ttf]# ttmkfdir -o fonts.scale [root@dhcp-104-6 ttf]# mkfontdir [root@dhcp-104-6 ttf]# xftcache ./ [root@dhcp-104-6 ttf]# service xfs restart Restarting X Font Server. [ OK ] [root@dhcp-104-6 ttf]# chkfontpath Current directories in font path: 1: /usr/X11R6/lib/X11/fonts/misc:unscaled 2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled 3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled 4: /usr/X11R6/lib/X11/fonts/misc:unscaled 5: /usr/X11R6/lib/X11/fonts/Type1 6: /usr/X11R6/lib/X11/fonts/TTF 7: /usr/X11R6/lib/X11/fonts/Speedo 8: /usr/share/fonts/ttf/decoratives 9: /usr/share/fonts/ttf/western 10: /usr/share/fonts/ttf/japanese 11: /usr/X11R6/lib/X11/fonts/drakfont/ttf 12: /usr/X11R6/lib/X11/fonts/drakfont/Type1 [root@dhcp-104-6 ttf]# # Verdana cannot be selected in K Menu->Configuration->KDE->LookNFeel->Fonts # Copy to /usr/share/fonts/ttf/western and set font up there: [root@dhcp-104-6 ttf]# cp verdana.ttf /usr/share/fonts/ttf/western/ [root@dhcp-104-6 ttf]# cd /usr/share/fonts/ttf/western [root@dhcp-104-6 western]# ttmkfdir -o fonts.scale unknown font foundry code SFT [root@dhcp-104-6 western]# mkfontdir [root@dhcp-104-6 western]# xftcache ./ [root@dhcp-104-6 western]# service xfs restart Restarting X Font Server. [ OK ] [root@dhcp-104-6 western]# chkfontpath Current directories in font path: 1: /usr/X11R6/lib/X11/fonts/misc:unscaled 2: /usr/X11R6/lib/X11/fonts/75dpi:unscaled 3: /usr/X11R6/lib/X11/fonts/100dpi:unscaled 4: /usr/X11R6/lib/X11/fonts/misc:unscaled 5: /usr/X11R6/lib/X11/fonts/Type1 6: /usr/X11R6/lib/X11/fonts/TTF 7: /usr/X11R6/lib/X11/fonts/Speedo 8: /usr/share/fonts/ttf/decoratives 9: /usr/share/fonts/ttf/western 10: /usr/share/fonts/ttf/japanese 11: /usr/X11R6/lib/X11/fonts/drakfont/ttf 12: /usr/X11R6/lib/X11/fonts/drakfont/Type1 # Now I can select Verdana in K Menu->Configuration->KDE->LookNFeel->Fonts It should be noted that after I've imported verdana.ttf using drakfont, it becomes immediately available in drakfont and openoffice. It also becomes available in KDE without anti-aliasing. But it is not available in KDE with AA. I chose to use verdana.ttf for the purposes of this example, but the same thing applies to all the windows fonts I've looked at. This is reproducible, meaning that once I remove verdana.ttf from /usr/share/fonts/ttf/western, I cannot select it in KDE. It still exists in /usr/X11R6/lib/X11/fonts/drakfont/ttf though!
