[Fontconfig] Fontconfig Issue

Rob fontconfig@fontconfig.org
Sat, 18 Jan 2003 12:13:48 -0500


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