Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21026 - MathML does not work under gentoo built Mozilla even if fonts *are* installed
Summary: MathML does not work under gentoo built Mozilla even if fonts *are* installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Mozilla Gentoo Team
URL: http://golem.ph.utexas.edu/~distler/b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-14 16:02 UTC by giggles1
Modified: 2004-02-18 23:32 UTC (History)
4 users (show)

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


Attachments
bungled MathML screen shot (mathscreen.png,209.51 KB, image/png)
2003-05-14 16:03 UTC, giggles1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description giggles1 2003-05-14 16:02:33 UTC
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"
Comment 1 giggles1 2003-05-14 16:03:31 UTC
Created attachment 11987 [details]
bungled MathML screen shot
Comment 2 giggles1 2003-05-14 16:07:00 UTC
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.
Comment 3 Felix Breuer 2003-07-15 04:26:05 UTC
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.
Comment 4 giggles1 2003-07-17 18:26:00 UTC
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. :)
Comment 5 giggles1 2003-07-27 17:39:19 UTC
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. 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-11 13:40:43 UTC
Brad ?
Comment 7 Felix Breuer 2003-08-14 08:15:20 UTC
This bug has been fixed upstream. (See the aforementioned Mozilla bugs.) A solution would be to simply wait for Mozilla 1.4.1.
Comment 8 giggles1 2004-02-18 23:32:45 UTC
MathML works decently for the last few revs, at least.