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

Re: Where are default fonts specified?



On Monday 10 November 2003 22:57, A.R. (Tom) Peters wrote:
> Does anyone know where in Debian default fonts for X are set?
>

I think it depends on whether you have libXft installed or not.  QT 
dynamically checks for the existance of this library and if its not there is 
uses the basic X fonts as specified in the /etc/X11/XF86Config-4 file.

However if libXft is present (at a late version - earlier versions were 
different) it uses the libfreetype library to display fonts - which it turn 
uses libfontconfig library to select the actual font based on the font name 
and family provided it.  The translation from the virtual name to a real font 
name is specified by /etc/fonts/* files - use normally concentrate on /etc/
fonts/local.conf - debian seems to manage that for you - as its quite hard to 
understand concepts such as the family and the binding strength which the 
library uses to select between different fonts with the same name.

debian also runs the fc-cache program which creates cache files for all the 
names in the directories

the /etc/fonts/fonts.conf file includes a directory reference to several 
places which contains fonts - most of the debian fonts are in these 
directories.

In addition if you examine /etc/fonts/local.conf you will see that debian does 
two things

a) include /var/lib/defoma/fontconfig.d/fonts.conf
This file is missing on my system, but presumably is a hook to allow defoma to 
add in fonts here.

b) leave you with the possibility of picking up the fonts in 
/usr/X11R6/lib/X11/fonts (which are the old bitmap fonts)

You can of course make private changes to local.conf to manipulate any other 
fonts that you have
-- 
Alan Chandler
alan@chandlerfamily.org.uk



Reply to: