On Sat, 18 Jan 2003 10:56:07 -0800 Keith Packard <keithp@keithp.com> wrote:> > Around 12 o''clock on Jan 18, Rob wrote: > > > The problem I''m having is font related. I have a number of high quality > > type 1 postscript fonts on this machine. When I use the application with > > the non-Xft build of GTK+ all of my fonts appear in the font selection > > process of that application. When I use the Xft-enabled build of GTK+, I > > only have a minimal set of non-postscript fonts to choose from in the > > selection process. > > You need to make sure that fontconfig knows where the fonts are installed. > /etc/fonts/fonts.conf has a list of directories; you can place your fonts > in any directory or subdirectory of those listed (usually /usr/share/fonts > and /usr/X11R6/lib/X11/fonts). If they''re elsewhere, you can either add > the new directory name to a configuration file or move them. > > Keith Packard XFree86 Core Team HP Cambridge Research LabThanks for the information. Adding existing font directory paths to the font.conf file was one of the first things I tried to get this to work. If I tried to bring up the application, it would crash and a message appeared indicating that the fonts.conf and fonts.dtd file weren''t synchronised. I subsequently deleted the offending line and the problem went away. BTW, the font path entry was of the same format as existing entries. Since the /usr/share/fonts and the ~/.fonts directories did not exist, I simply created symbolic links to point to where existing fonts were located. This worked very well and now my Unix fonts look better than they ever have. What did the message stating "the fonts.conf and fonts.dtd files were not synchronised" mean? Rob
Around 17 o''clock on Jan 18, Rob wrote:> What did the message stating "the fonts.conf and fonts.dtd files were not > synchronised" mean?I don''t know -- I don''t think expat validates against the DTD. Weird. I suspect you made some small error in the syntax; XML is none to forgiving. Feel free to post what you did; we might find out where the problem lies. -keith
Around 12 o''clock on Jan 18, Rob wrote:> The problem I''m having is font related. I have a number of high quality > type 1 postscript fonts on this machine. When I use the application with > the non-Xft build of GTK+ all of my fonts appear in the font selection > process of that application. When I use the Xft-enabled build of GTK+, I > only have a minimal set of non-postscript fonts to choose from in the > selection process.You need to make sure that fontconfig knows where the fonts are installed. /etc/fonts/fonts.conf has a list of directories; you can place your fonts in any directory or subdirectory of those listed (usually /usr/share/fonts and /usr/X11R6/lib/X11/fonts). If they''re elsewhere, you can either add the new directory name to a configuration file or move them. Keith Packard XFree86 Core Team HP Cambridge Research Lab
I''m having a problem with fonts under a new build of Fontconfig 2.1. First a little background information and then on to my question at the bottom of this post. I recently built 2 versions of an application and GTK+ 2.2. The first build was without components of Fontconfig 2.1 and the second build was with. To illustrate the components of each build, here is a directory listing of GTK+ 2.2''s lib/pkgconfig directory for each build: without Fontconfig 2.1: chelsea:/opt/gtk2/lib/pkgconfig>? ll total 40 drwxr-xr-x 2 root other 512 Jan 8 21:50 . drwxr-xr-x 7 root other 2048 Jan 5 21:36 .. -rw-r--r-- 1 root other 249 Jan 4 21:35 atk.pc -rw-r--r-- 1 root other 245 Jan 7 20:43 fontconfig.pc -rw-r--r-- 1 root other 311 Jan 4 22:19 gdk-2.0.pc -rw-r--r-- 1 root other 272 Jan 4 22:19 gdk-pixbuf-2.0.pc -rw-r--r-- 1 root other 285 Jan 4 22:18 gdk-pixbuf-xlib-2.0.pc -rw-r--r-- 1 root other 311 Jan 4 22:19 gdk-x11-2.0.pc -rw-r--r-- 1 root other 342 Jan 4 21:07 glib-2.0.pc -rw-r--r-- 1 root other 273 Jan 4 21:07 gmodule-2.0.pc -rw-r--r-- 1 root other 244 Jan 4 21:07 gobject-2.0.pc -rw-r--r-- 1 root other 238 Jan 4 21:07 gthread-2.0.pc -rw-r--r-- 1 root other 335 Jan 4 22:19 gtk+-2.0.pc -rw-r--r-- 1 root other 335 Jan 4 22:19 gtk+-x11-2.0.pc -rw-r--r-- 1 root other 253 Jan 5 21:36 gtkspell-2.0.pc -rw-r--r-- 1 root other 306 Jan 4 23:10 libxml-2.0.pc -rw-r--r-- 1 root other 303 Jan 4 21:28 pango.pc -rw-r--r-- 1 root other 283 Jan 4 21:28 pangox.pc -rw-r--r-- 1 root other 490 Jan 8 21:50 xft.pc with Fontconfig 2.1: chelsea:/opt/gtk2/lib/pkgconfig>? ll /opt/gtk.Xft/lib/pkgconfig total 44 drwxr-xr-x 2 root other 512 Jan 9 11:49 . drwxr-xr-x 7 root other 2048 Jan 9 11:49 .. -rw-r--r-- 1 root other 249 Jan 8 23:56 atk.pc -rw-r--r-- 1 root other 245 Jan 7 20:43 fontconfig.pc -rw-r--r-- 1 root other 320 Jan 9 00:49 gdk-2.0.pc -rw-r--r-- 1 root other 272 Jan 9 00:49 gdk-pixbuf-2.0.pc -rw-r--r-- 1 root other 285 Jan 9 00:48 gdk-pixbuf-xlib-2.0.pc -rw-r--r-- 1 root other 320 Jan 9 00:49 gdk-x11-2.0.pc -rw-r--r-- 1 root other 341 Jan 8 22:42 glib-2.0.pc -rw-r--r-- 1 root other 272 Jan 8 22:42 gmodule-2.0.pc -rw-r--r-- 1 root other 243 Jan 8 22:42 gobject-2.0.pc -rw-r--r-- 1 root other 237 Jan 8 22:42 gthread-2.0.pc -rw-r--r-- 1 root other 335 Jan 9 00:49 gtk+-2.0.pc -rw-r--r-- 1 root other 335 Jan 9 00:49 gtk+-x11-2.0.pc -rw-r--r-- 1 root other 253 Jan 9 01:43 gtkspell-2.0.pc -rw-r--r-- 1 root other 306 Jan 9 11:49 libxml-2.0.pc -rw-r--r-- 1 root other 303 Jan 8 23:50 pango.pc -rw-r--r-- 1 root other 347 Jan 8 23:50 pangoft2.pc -rw-r--r-- 1 root other 283 Jan 8 23:50 pangox.pc -rw-r--r-- 1 root other 335 Jan 8 23:50 pangoxft.pc -rw-r--r-- 1 root other 490 Jan 8 21:50 xft.pc The problem I''m having is font related. I have a number of high quality type 1 postscript fonts on this machine. When I use the application with the non-Xft build of GTK+ all of my fonts appear in the font selection process of that application. When I use the Xft-enabled build of GTK+, I only have a minimal set of non-postscript fonts to choose from in the selection process. I have all the latest X windows and CDE patches on this Solaris 8 machine. If possible, would you be able to shed some light on possible solutions to this font problem? Thanks. Rob