hubertf's NetBSD Blog
Send interesting links to hubert at feyrer dot de!
 
[20080920] GNOME (and Firefox) fonts vs. X11R7 vs. pkgsrc
So I have upgraded my NetBSD 4.0 installation with a -current build with MKXORG=yes, and then built pkgsrc/meta-pkgs/gnome for the past few days. Starting up gnome-session just gave me little rectangles instead of fonts. GRMBL!!!1!

With some investigation, GNOME used pkgsrc's fontconfig goo, which doesn't include any fonts - which is about what it displays. To fix, /usr/pkg/etc/fontconfig/fonts.conf can be adjusted to also look in /usr/X11R6 (which I still have from my NetBSD 4.0 installation) and /usr/X11R7 (thanks to MKXORG=yes):

--- /usr/pkg/etc/fontconfig/fonts.conf.orig	2008-09-10 18:05:47.000000000 +0200
+++ /usr/pkg/etc/fontconfig/fonts.conf
@@ -23,6 +23,8 @@
 
 <!-- Font directory list -->
 
+	<dir>/usr/X11R7/lib/X11/fonts</dir>
+	<dir>/usr/X11R6/lib/X11/fonts</dir>
 	<dir>/usr/pkg/lib/X11/fonts</dir>
 	<dir>/usr/pkg/share/ghostscript/fonts</dir>
 	<dir>~/.fonts</dir> 
I hope this helps anyone encountering a similar situation (including future incarnations of myself ;). (And if you ask "WTF GNOME?" - I wanted to have another look, after my last attempt at using GNOME is now several years ago :-)

P.S.: This also fixes fonts on firefox. Yai!

[Tags: , , ]


Disclaimer: All opinion expressed here is purely my own. No responsibility is taken for anything.

Access count: 36038086
Copyright (c) Hubert Feyrer