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

temp reducing number of fonts, xfs in way?



Im having a great time with fonts at present !! My aim is to reduce the 
number of default font directories so when using gimp I am not swamped with 
fonts. 

Can someone clarify a point with me ...

when X boots it reads the font path from /etc/X11/XF86-config, in my case


Section "Files"
	FontPath	"unix/:7101"			# true type server
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

this can be viewed with

xset -q

If I want to tempory reduce the number of fonts on offer I would use

xset -fp /usr/lib/X11/fonts/cyrillic
xset fp rehash

when I next do a 

xset -q

I find that cyrillic has gone, all good
however the font is still avalible. Is this because at the start of 
XF86config-4 it accesses xfs via unix/:7100 ?

xfs looks at a config file in /usr/X11R6/lib/X11/fs/config, which contains ...

# paths to search for fonts
catalogue = 
/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/cyrillic/,/usr/lib/X11/fonts/100dpi/:unscaled,
/usr/lib/X11/fonts/75dpi/:unscaled,/usr/lib/X11/fonts/Type1/,
/usr/lib/X11/fonts/CID,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/freefonts/

so am I right in thinking that server unix:/7100 will find the fonts anyway 
regardless of what I do with xset -fp ? This seems to be what is happening.

So is there any tempory way of removing font directories short of removing 
them in XF86config-4 AND /usr/X11R6/lib/X11/fs/config for xfs ?

Dave






Reply to: