I've made two ebuild for fonts needed by Mozilla to display MathML correctly (according to http://www.mozilla.org/projects/mathml/fonts/). They lack easy installation in /etc/X11/fs/config and others, but AFAICS there's no general support for this yet. I'm waiting for your comments & approval to cvs add them.
We do not add new font packages until fonts.eclass (bug #13808) is committed.
mattam, please rewrite your ebuild with font.eclass.
Created attachment 42144 [details] mathematica-fonts-4.1.ebuild Here's the ebuild for mathematica fonts, the type1 or truetype versions can be installed at users choice. It seems it is now unnecessary to indicate to users to add the new fonts path to /etc/X11/{anything}, is that right ?
Created attachment 42146 [details] texcm-ttf-1.0.ebuild Here's the ebuild for tex Computer Modern fonts, a perfect instance of the eclass :) Maybe i should rename it to texcm ?
I think texcm is better (but that's a matter of choice). btw, where can I find licences for these packages?
Created attachment 42457 [details] bakoma The Bakoma licence for texcm. Mathematica has no downloadable licence, the EULA has to be accepted online.
Sorry for the delay. Added both texcm-ttf and mathematica-fonts to CVS. Thanks for your submission.
Is there any reason the ebuild placed in portage is for 4.2? Mozilla needs 4.1. I've opened bug 92662 about this
That's because my browser can render MathML sample page correctly with 4.2 ebuild. Just asking, are you sure you need 4.1 fonts to make mozilla display MathML page? Can you show me a sample page that you actually fail to see correctly with 4.2? Thanks in advance.
I get this message while viewing many pages: To properly display the MathML on this page you need to install the following fonts: Math1, Math2, Math4. Here's one from the W3C test suite http://www.w3.org/Math/testsuite/testsuite/TortureTests/Complexity/complex2.xml It seems that the major difference is in names. For example, Mathematica1.ttf (4.2) probably corresponds to math1___.ttf (4.1) If you read the comments to mozilla bug 128153, you'll see that the fonts used are configurable via the pref font.mathfont-family . We could add a note to the ebuild to change the pref or add aliases. Pref solution (includes change to use Standard Symbols L per mozilla bug 236880): pref(font.mathfont-family, "CMSY10, CMEX10, Mathematica1, Mathematica2, Mathematica4, MT Extra, Standard Symbols L") Alias solution (example): <match target="pattern"> <test name="family"> <string>symbol</string> </test> <edit name="family" mode="append" binding="strong"> <string>Standard Symbols L</string> </edit> </match> See also: /usr/lib/MozillaFirefox/res/fonts/mathfont.properties https://bugzilla.mozilla.org/show_bug.cgi?id=128153 https://bugzilla.mozilla.org/show_bug.cgi?id=236880
Created attachment 58931 [details, diff] Patch to the existing ebuild Tells the user how to make Mozilla & Co. happy with the 4.2 package. Yes, pages render just fine with them.
Obviously, Mozilla should be equally happy with either. I've filed a bug on their end about it. Until then, it's up to the user to handle it. https://bugzilla.mozilla.org/show_bug.cgi?id=294224
I've migrated "tell users to change mozilla pref" to it's own bug, 93100