I have been trying on and off for several months to get MathML working in a gnetoo built Mozilla (1.2 or 1.3) without success. I followed the instructions here: http://seventeen.mit.edu/blog/platin/archives/cat_linux.html to install the Mathematica and LaTeX fonts. I also ran fc-cache afterward (though I don't know much about this new font mechanism) After all of this, the fonts show up listed under xfontsel, and in the KDE font selector, etc. But Mozilla still does not render MathML pages correctly. I can download a binary from mozilla.org, and it will render MathML perfectly, but for some reason the binary no longer sees AA fonts and then general non MathML rendering looks horrible. I have attached a screenshot of bungled MathML. The URL I gave is the page it is from so you can see what it should look like (on a working browser). Reproducible: Always Steps to Reproduce: 1. 2. 3. bryan@please bryan $ emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-ck6 i686 AMD Athlon(tm) MP 2000+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distri butions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config / usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/local/portage" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm cups mikmod nls xml2 gtkhtml gdbm slang bonobo ruby libwww motif X 3dnow mmx directfb sse dga opengl xv fbcon kde qt qtmt arts tcltk aalib imlib ncurses readline sdl svga lcms gif jpeg png tiff gd avi mpeg quicktime esd gtk gtk2 -gnome alsa ggi dvd x mms oggvorbis encode pam ssl crypt tcpd mozilla spell truetype xml pdflib plotutils tetex guile perl python libg++ atlas pic berkdb mysql postgres odbc samba gpm zlib java" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O2 -pipe" CXXFLAGS="-march=athlon-mp -O2 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j4" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 11987 [details] bungled MathML screen shot
I forgot to mention, yes I have specified the mathfont to Mozilla according to the directions here: http://www.mozilla.org/projects/mathml/fonts/ currently I have: prefs.js:user_pref("font.mathfont-family", "Math1, Math2, Math4"); user.js:user_pref("font.mathfont-family", "Math1, Math2, Math4"); But I have tried (and failed) specifying the LaTeX fonts too.
I can confirm this problem. The reason for this is upstream, see these two bugs: bug 176290 - enabling custom font encoding support in Xft-enabled Mozilla (mathml on xft) http://bugzilla.mozilla.org/show_bug.cgi?id=176290 bug 128153 - need to get MathML fonts working with Xft http://bugzilla.mozilla.org/show_bug.cgi?id=128153 There is a working patch attached to 176290 which resolves this problem but some reason didn't make it into Mozilla 1.4 final. It would be nice if the gentoo ebuild could be changed to automatically apply that patch.
Failing that (or, hopefully, just in the mean time) if someone who could throw together an ebuild that applies the patch and attach it here, I would love you forever. :)
Well I patched Mozilla 1.4 by hand and rebuilt it. I can confirm that the patch linked to above does fix the problem. Mozilla with xft now displays MathML perfectly fine (at least with the Mathematica fonts), in case anyone ever cares to add it to portage.
Brad ?
This bug has been fixed upstream. (See the aforementioned Mozilla bugs.) A solution would be to simply wait for Mozilla 1.4.1.
MathML works decently for the last few revs, at least.