On 13/03/10 20:36, linux fan 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).
Firefox doesn't deal with fonts directly, it uses fontconfig and freetype. > > 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. Are you sure? If I install a font in my home folder with sh configure --with-fontrootdir=/home/andy/tmp make install > 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. You only need to recompile xorg-server, it's not a big job. You need to set the option --with-default-font-path= for example --with-default-font-path=/usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,\ /usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/cyrillic,\ /usr/share/fonts/X11/TTF,/usr/share/fonts/X11/OTF > 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. > The standard place to install fonts is where fontconfig looks for them (read /etc/fonts/fonts.conf), /usr/share/fonts. I compile my xorg fonts --with-fontrootdir=/usr/share/fonts and xorg-server with --with-fontdir=/usr/share/fonts \ --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/Type1,\ /usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/cyrillic,\ /usr/share/fonts/TTF,/usr/share/fonts/OTF Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
