Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54657 - Mozilla Firefox 0.9 does not obey fonts.conf
Summary: Mozilla Firefox 0.9 does not obey fonts.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 08:59 UTC by Dan Noe
Modified: 2004-07-03 22:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Noe 2004-06-21 08:59:43 UTC
I use .fonts.conf in my home directory to disable antialiasing on small fonts because they are more readable that way.  However, after upgrading to firefox 0.9 the browser no longer seems to obey .fonts.conf for page rendering or the menubar.

I have tried setting about:config's font.antialias.min as well, with no effect.

Reproducible: Always
Steps to Reproduce:
1.  Set fonts.conf to disable antialiasing for certain font sizes
2.  Upgrade firefox
3.  Firefox does not obey settings

Actual Results:  
Everything is antialiased.

Expected Results:  
Fonts smaller than 16 point should not be antialiased.

[ebuild   R   ] net-www/mozilla-firefox-0.9-r1  -gnome +gtk2 -ipv6 +java
-moznoxft +truetype -xinerama  0 kB 

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-r
2-mm2)
=================================================================
System uname: 2.6.7-rc2-mm2 i686 Intel(R) Celeron(TM) CPU                1333MH
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/"
USE="X aalib acpi avi berkdb bonobo cdr crypt cups dvd emacs encode esd foomati
db gdbm gif gphoto2 gtk gtk2 gtkhtml guile imlib java jpeg libg++ libwww mad mi
mod motif mozilla mpeg ncurses nls nocardbus oggvorbis opengl oss pam pcmcia pd
lib perl png pnp python qt quicktime readline sdl slang spell ssl svga tcpd tet
x truetype usb x86 xml2 xmms xv zlib"
Comment 1 ra 2004-06-22 12:04:56 UTC
Firefox DOES follow fonts.conf files.

Only since 0.9 it doesn't follow the pixel section of the file but the points section.

Make sure your pointsize section is set appropriately.

Here's my amended .fonts.conf file:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <test compare="not_eq" name="weight" qual="any" >
        <const>bold</const>
  </test>
  <test compare="more" name="size" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="size" qual="any" >
   <double>13</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
 </match>
 <match target="font" >
  <test compare="not_eq" name="weight" qual="any" >
        <const>bold</const>
  </test>
  <test compare="more" name="pixelsize" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="pixelsize" qual="any" >
   <double>17</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
 </match>
</fontconfig>
Comment 2 Brad Laue (RETIRED) gentoo-dev 2004-07-03 22:22:19 UTC
Works here with the responder's configuration. Using points is better anyway as it takes into account varied DPI settings and screen sizes.

Please reopen if this is still an issue.