On 13 March 2010 20:36, linux fan <[email protected]> wrote:
> Always, in the past, I would unpack bitstream-vera fonts
> URL="http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera\
> /1.10/ttf-bitstream-vera-1.10.tar.bz2"
> into the TTF directory and make a link X11-TTF in /usr/share/fonts
> pointing to the TTF directory as mentioned in the book.
> The resulting fonts would always be high quality and trouble free.
>
> While it sounds like a great idea, Xorg-7.5 changes the default font
> installation dir to /usr/share/fonts/X11 which confuses things
> including xorg-server-1.7.1 and firefox (1.5 and 3).
> http://docs.google.com/View?id=dg7ck9hb_153f42jwcwr
To me, that looks like the other link below - a sans-serif TTF.
Literally, I don't see the problem (viewed from both epiphany and
ff-3.6.
Admittedly, I'm still using an xorg.conf which has redundant font
information in it, so my log complains about non-existent
/usr/lib/X11/fonts/something directories, but fonts are working
here although /usr/lib/X11 only contains
k...@ac30 ~ $ls -F /usr/lib/X11
app-defaults/ config/ modules/ Xcms.txt xinit/
>
> To compensate for the change, I created directory /usr/lib/X11/fonts
> and created a link X11 pointing to where the TTF directory ended up
> which was /usr/share/fonts/X11/TTF.
> I also had to specify in /etc/X11/xorg, e.g.,
> FontPath "/usr/share/fonts/X11/xxx/"
> because xorg-server didn't find its expected /usr/lib/X11/fonts/xxx.
>
> The confusion originates with new font-util which creates
> /usr/lib/pkgconfig/fontutil.pc having the fontrootdir equate
> by default to /usr/share/fonts/X11 and all the font packages determine
> the font installation dir from that.
>
> However, xorg-server-1.7.1 is unenlightened
> # xorg-server configure
> # --with-fontdir=FONTDIR Path to top level dir where fonts are installed
> # (default: ${libdir}/X11/fonts)
>
> Firefox also seems unenlighted in the above screenshot.
> Oddly, firefox looked ok on some pages, but not on other pages such
> as the (b)lfs books.
>
> Boldly removing my created /usr/lib/X11/fonts dir and executing
> mv /usr/share/fonts/X11 /usr/lib/X11/fonts
> and
> ln -s /usr/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF
> permitted firefox to seem better
> http://docs.google.com/View?id=dg7ck9hb_151gfphzndg
>
> This hack may not be perfect and as yet I do not know if configuring
> xorg-server with --with-fontdir=/usr/share/fonts/X11
> would do the job. Obviously, a full xorg do-over would be a big job.
>
> If I do the do-over, I am inclined to configure
> font-util with -with-fontrootdir=/usr/lib/X11/fonts
> to get the traditional behavior that has always worked in the past.
>
> Fonts have me clearly confused.
> --
> http://linuxfromscratch.org/mailman/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
FWIW, I configured xorg-server-1.7.4 with
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--enable-builtin-fonts \
--with-module-dir=/usr/lib/X11/modules \
--disable-config-hal --disable-config-dbus \
--enable-install-setuid \
As for font-util, I dispensed with that when I sent the
old core fonts to /dev/null, hence the
'--enable-builtin-fonts' switch above.
The only thing I've seen which gave me problems
without core fonts was xcalc (no square root), but
I can live with that. Unless you have a need for
*really* obscure fonts which are included in the old
core fonts, I think you'll find it *much* easier to
just drop the old core fonts. Of course, you might
need a few extra ttfs.
All my fonts are in subdirectories of /usr/share/fonts.
ĸen
--
After tragedy, and farce, "OMG poneys!"
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page