10.4: A fix for some X11 GTK2 applications' font issues

May 11, '05 08:48:00AM

Contributed by: timhaigh

Tiger only hintAfter installing Tiger and Apple's X11,and updating Fink with selfupdate to make it Tiger compatible, I noticed some X11 problems. Specifically, my X11 apps that use GTK2 would not launch, and I got a message in the Terminal that my fontconfig is not configured correctly. The apps were xchat, gkrellm2, and mozilla. I noticed in my console that when launching X11, I got this message:

Could not init font path element /usr/X11R6/lib/X11/fonts/....
So I ran the following commands to fix the problems:
$ mkfontdir /usr/X11R6/lib/X11/fonts/75dpi
$ mkfontdir /usr/X11R6/lib/X11/fonts/100dpi
$ mkfontdir /usr/X11R6/lib/X11/fonts/CID
$ mkfontdir /usr/X11R6/lib/X11/fonts/Speedo
$ mkfontdir /usr/X11R6/lib/X11/fonts/TTF
$ mkfontdir /usr/X11R6/lib/X11/fonts/Type1
$ mkfontdir /usr/X11R6/lib/X11/fonts/encodings
$ mkfontdir /usr/X11R6/lib/X11/fonts/local
$ mkfontdir /usr/X11R6/lib/X11/fonts/misc
Although I still get an error with the CID font, my GTK2 X11 apps launch with no problems, and I don't get the fontconfig error.

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050502190643924