Fonts in a KDE application

Craig Drummond Craig.Drummond at gmx.net
Wed Apr 6 10:41:32 BST 2005


> I find that on my system that:
>
> 	kfmclient copy <font_name>.ttf fonts:/System/
>
> copys the file to "$KDEDIR/share/fonts" which doesn't seem correct to
> me.  And, it didn't update the Fontmap file in the directory.

Hmmm...strange. To locate the system font directory, kio fonts queries 
fontconfig for its list of folders. The default, and preferred, folder is 
"/usr/local/share/fonts/". If the default is in the list of folders, then 
this is what is used. If not, then the list is checked for the 1st sub folder 
of "/usr/local/share/", and if none found then default is used and added to 
fontconfig. So if your KDEDIR is /usr/local, then $KDEDIR/share/fonts is the 
correct place. If $KDEDIR is /usr, /opt, etc. then something is a bit odd 
($KDEDIR is never looked at/used!)

No Fontmap file is created in the font directory. Fontmaps are created in 
$HOME/.fonts for non-root, and /etc/fonts/ for root (and this one should be 
added to Ghoscript's main Fontmap file)

But, does installing the font work? (Afterall that is the main purpose!)

Craig.




More information about the kde-core-devel mailing list