Since I upgraded mozilla firefox to version 1.5, mathml is not rendered correctly. See the mozilla test page at http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml This is not a font problem. The page is rendered correctly with mozilla 1.7, and was rendered correctly with the previous version of firefox. Reproducible: Always Steps to Reproduce: 1. Install firefox 1.5 2. open the above mentioned page 3. Gentoo Base System version 1.12.0_pre11 Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-ck4 i686) ================================================================= System uname: 2.6.14-ck4 i686 AMD Duron(tm) Processor dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.16, 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-g -Os -march=athlon-tbird -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/genkernel/x86 /usr/share/zsh /var/qmail/control" CONFIG_PROTECT_MASK="/etc/X11/serverconfig /etc/X11/starthere /etc/X11/sysconfig /etc/games /etc/gconf /etc/gnome-vfs-2.0 /etc/hotplug /etc/init.d /etc/sound /etc/splash /etc/ssl /etc/svgalib /etc/terminfo /etc/texmf/web2c /etc/udev/scripts /etc/xdg /usr/lib/X11 /etc/env.d" CXXFLAGS="-g -Os -march=athlon-tbird -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache digest distlocks emergemail nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://www.gigaload.org/gentoo.org/ http://ftp.easynet.nl/mirror/gentoo/" LANG="he_IL.utf8" LDFLAGS="-Wl,-O1" LINGUAS="he" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X a52 aac aalib aavm acl acpi alsa amd apm arts artswrappersuid artworkextra audiofile avi berkdb bidi bitmap-fonts bonobo browserplugin bzip2 cddb cdparanoia cdr crypt css cups curl dga dillo directfb divx4linux doc dv dvb dvd dvdr dvdread editor eds emboss encode erandom esd exif expat faac faad fam fame fbcon ffmpeg firefox flac foomaticdb freetype gd gdbm ggi gif glep glibc-omitfp glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imlib imlib2 immqt ipv6 ithreads java javascript jbig jikes jpeg junit kde latex lcms ldap libg++ libwww linuxthreads-tls lua lzo mad mailwrapper mbox mikmod mjpeg mmx mmxext mng motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses network new-login nls nntp nocd nowin nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oss pam pango pcre pdflib perl perlsuid plotutils png ppds python qt quicktime readline recode ruby sdl server speex spell ssl svg svga t1lib tcltk tcpd tetex theora threads tiff tools truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales uudeview v4l2 vcd vim-with-x vorbis win32codecs wmf wxwin wxwindows xatrix xface xine xml xml2 xmms xprint xscreensaver xv xvid zlib linguas_he userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL
As mentioned on the gentoo users mailing list, the problem does not occur with the binary version (the one installed by mozilla-firefox-bin)
Just wanted to add that I have the same problem with mozilla-firefox-1.5-r4 from portage built from source. Any idea why this is? Is it being worked on?
Created attachment 83896 [details] sample rendering I probably have the same problem here. I installed all fonts and set the font.mathfont-family in about:config... firefox does not complain about missing fonts but some of the symbols are simply rendered way above their normal position. aRZed
*** Bug 122400 has been marked as a duplicate of this bug. ***
This is maybe an upstream bug since there is at least someone running debian with the same problems... Here is the corresponding bug on mozilla.org: https://bugzilla.mozilla.org/show_bug.cgi?id=120198#c96
maybe no upstream problem, as http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml is rendered OK with fresh compiled firefox-1.5.0.2_1 on our freebsd-stable server. Freebsd firefox was used remotely over X-protocol from my gentoo box, as on the server there is only an "emergency display". On the gentoo box mathematica fonts are installed and used with native firefox ( and mathml is rendered unuseable). FreeBSD-Firefox complains about missing symbol font, even though it uses the same X-server ...
[WORKAROUND]: set environment variable MOZ_DISABLE_PANGO, i.e. MOZ_DISABLE_PANGO=any firefox renders http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml correctly
Created attachment 104568 [details, diff] Pango mathml patch It seems it's an upstream issue; Redhat has found a fix here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=150393 I can confirm that the attached patch fixes the issue for me on firefox 1.5.0.9
Patch is in 1.5.0.9r1, resolving.
Bug is also present in 2.0.0.1. Also the test page informs me that the following fonts are missing: CMSY10 CMEX10 Math1 Math2 Math4 Symbol Is there any reason why the firefox ebuild can't depend on whatever font packages provide these fonts?
Seems to affect -bin-2.0.0.1 also, can anyone confirm?
Resolving until someone can prove it is not upstream.
Upstream bug appears to be https://bugzilla.mozilla.org/show_bug.cgi?id=321994 Two possible reasons for lack of mathml are posted: 1) Distribution uses Pango. Check by setting env var MOZ_DISABLE_PANGO=1. Fix patch is attached to mozilla.org bug report. 2) Fonts are not installed. Maybe I'm missing something but I see no mention of fonts anywhere in the mozilla-firefox ebuild?! http://www.mozilla.org/projects/mathml/fonts/ says "Xft-enabled builds, you should install the TrueType TeX fonts and Mathematica 4.1 fonts.... with Xft-disabled builds (i.e., with X11core fonts), you should install the Type1 TeX fonts and Mathematica 4.1 fonts (repeat: 4.1) in PFA and PCF formats". Probably both of these are occuring since by default the mozilla-firefox ebuild uses pango and has no font DEPENDs. It looks like the packages required by firefox are media-fonts/mathematica-fonts and media-fonts/texcm-ttf. I'm not sure about the non-Xft PFA/PCF thing; there's a page linked from the mozilla.org mathml page that explains how to install them.
Also see bug https://bugzilla.mozilla.org/show_bug.cgi?id=128153#c81 and note that the mozilla mathml page also recommends installing MT Extra and Lucida Sans Unicode. I'm not sure if there are ebuilds for these - http://www.mathtype.com/support/fonts has mt extra and possibly Lucinda is in the MS corefonts. Apparently the Adobe Symbol font is supplied as part of acroread so that might need to be pulled in as well.
I don't believe this is a font problem, we do indeed enable pango and disabling it (MOZ_DISABLE_PANGO=1 firefox) allows the page to render perfectly. I think it's about time to give up trying to patch pango to play nice with mathml. If you want mathml support, build firefox without pango support or use MOZ_DISABLE_PANGO. I'm not sure if it's worth adding a notice to the ebuild stating this.
MOZ_DISABLE_PANGO=1 firefox still has problems displaying the mathml torture test. On both firefox and firefox-bin test 13 just shows black bars under the sqrt symbols, test 18 the curly brace is only around the middle entry not all of them, test 23 the brackets are messed up completely, etc. With mathematica-fonts and texcm-ttf installed torture test results are: mozilla-bin perfect mozilla nopango perfect mozilla pango totally wrong The mathematica-fonts ebuild actually tells you how to add the fonts to firefox manually. With the fonts installed I'm not getting the error about missing fonts anymore. I can post all this as a new bug if you prefer.
Created attachment 120809 [details] Screenshot of FF 2.0.0.3 with pango OK, here is my version of this problem: with pango, most symbols are taken from some wrong font, while it displays correctly with MOZ_DISABLE_PANGO set. I have followed the mathematica-fonts-5.2 postinst instructions. (In reply to comment #8) > Created an attachment (id=104568) [edit] > Pango mathml patch > > It seems it's an upstream issue; Redhat has found a fix here: > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=150393 > I can confirm that the attached patch fixes the issue for me on firefox > 1.5.0.9 This patch seems to be incorporated into the current FF 2.0.0.3 sources, so this is not the solution at least to the problem I experience. (In reply to comment #13) > Upstream bug appears to be https://bugzilla.mozilla.org/show_bug.cgi?id=321994 That bug has been resolved, the fix described there is included in my 2.0.0.3 sources, and I still have problems. So it's a different issue. The screenshot there looks different as well.
(In reply to comment #16) > MOZ_DISABLE_PANGO=1 firefox still has problems displaying the mathml torture > test. On both firefox and firefox-bin test 13 just shows black bars under the > sqrt symbols, test 18 the curly brace is only around the middle entry not all > of them, test 23 the brackets are messed up completely, etc. I can't confirm any of this. With MOZ_DISABLE_PANGO=1 and a pretty virgin FF profile, I get a warning about missing fonts, but the page displays all right.
OK, pango sucks and you surprisingly need math fonts to see math junk; I just fail to see why is this bug still open and what's Gentoo supposed to do here.
It's just an idea, but maybe setting the 'mathml' USE flag should actually enable the viewing of mathml pages? How is a user supposed to know that they have to manually emerge fonts and mess around with config files? Is there any reason why setting 'mathml' can't just work?
(In reply to comment #20) > How is a user supposed to know that they have to manually emerge fonts and mess > around with config files? Is there any reason why setting 'mathml' can't just > work? What kind of mathml USE flag? There's none AFAICS.
> What kind of mathml USE flag? There's none AFAICS. I forgot. What I meant was that currently if you emerge mozilla-firefox you assume that mathml is going to work. If you check the ebuild it configures with mathml. If it still fails without specific fonts being installed, then either firefox should depend on them, or there should be a post install message telling you to also emerge the fonts. I'd prefer it to just work. I should mention that this is based on the previous failure, I haven't tested on a new install or with latest firefox, maybe newer versions have built in fonts, or some other way of rendering mathml.
I think I found a patch to get firefox with pango select the right math font. I've been reading https://bugzilla.redhat.com/show_bug.cgi?id=150393 and from there found https://bugzilla.mozilla.org/show_bug.cgi?id=349906#c4 which is a patch that has been checked into the upstream repository on 2006-08-29 but isn't included in the www-client/mozilla-firefox-2.0.0.6 ebuild Gentoo uses. You could either apply this patch in a rev-bumped ebuild or wait for the next official FF release.
(In reply to comment #23) > https://bugzilla.mozilla.org/show_bug.cgi?id=349906#c4 That's the patch we need, thanks.
Fixed upstream in 2.0.0.8
Why not close this bug?