Actually, I managed to solve the problem after much messing around with the font settings in Gnome. Even after switching back to KDE, Firefox 3 picks up the Gnome settings.