Re: fonts confusion, openoffice/linux and Xorg

Brian de Alwis <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
I spent hours trying to figure out the right order of directories
to include, and still ended up with bitmapped fonts being selected
on occasion.  And then I stumbled across this solution.

Assuming you're generally using apps using fontconfig (anything
using GTK 2, and I believe QT3, or the new X libraries), add a
directive like the following to your .fonts.conf:

    <include ignore_missing="yes">/usr/pkg/etc/fontconfig/conf.d/no-bitmaps.conf</include>

(or the appropriate location of the no-bitmaps.conf)  This will
cause bitmap fonts to be rejected.  Since doing this, my setup has
been great.  You'll still need the directories, but you'll always
being using hinted/scaled fonts.

(If you're running the shipped XFree86, you'll also need to replace
the /usr/X11R6/lib/libfontconfig.so* with links to the pkgsrc
version; the X11R6 version is older and doesn't support selectfont /
rejectfont / acceptfont.)

Brian.

-- 
  Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
      "Amusement to an observing mind is study." - Benjamin Disraeli
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.