Bug 52014 - Fonts for MathML support
Bug#: 52014 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: enhancement Priority: P3
Resolution: FIXED Assigned To: fonts@gentoo.org Reported By: mattam@gentoo.org
Component: Ebuilds
URL:  http://dev.gentoo.org/~mattam/overlay/media-fonts/
Summary: Fonts for MathML support
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2004-05-25 08:02 0000
Description:   Opened: 2004-05-25 08:02 0000
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.

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2004-05-31 00:20:28 0000 -------
We do not add new font packages until fonts.eclass (bug #13808) is committed.

------- Comment #2 From Mamoru KOMACHI (RETIRED) 2004-10-17 00:48:40 0000 -------
mattam, please rewrite your ebuild with font.eclass.

------- Comment #3 From Matthieu Sozeau (RETIRED) 2004-10-19 01:23:51 0000 -------
Created an attachment (id=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 ?

------- Comment #4 From Matthieu Sozeau (RETIRED) 2004-10-19 01:27:24 0000 -------
Created an attachment (id=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 ?

------- Comment #5 From Mamoru KOMACHI (RETIRED) 2004-10-23 02:38:26 0000 -------
I think texcm is better (but that's a matter of choice). 
btw, where can I find licences for these packages?

------- Comment #6 From Matthieu Sozeau (RETIRED) 2004-10-23 08:37:36 0000 -------
Created an attachment (id=42457) [details]
bakoma

The Bakoma licence for texcm. Mathematica has no downloadable licence, the EULA
has to be accepted online.

------- Comment #7 From Mamoru KOMACHI (RETIRED) 2005-05-03 08:14:38 0000 -------
Sorry for the delay. Added both texcm-ttf and mathematica-fonts
to CVS. Thanks for your submission.

------- Comment #8 From Nikolas 'Atrus' Coukouma 2005-05-14 19:10:19 0000 -------
Is there any reason the ebuild placed in portage is for 4.2? Mozilla needs 4.1.
I've opened bug 92662 about this

------- Comment #9 From Mamoru KOMACHI (RETIRED) 2005-05-14 19:45:34 0000 -------
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.

------- Comment #10 From Nikolas 'Atrus' Coukouma 2005-05-14 20:28:15 0000 -------
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

------- Comment #11 From Nikolas 'Atrus' Coukouma 2005-05-14 20:47:26 0000 -------
Created an attachment (id=58931) [details]
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.

------- Comment #12 From Nikolas 'Atrus' Coukouma 2005-05-14 21:45:22 0000 -------
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

------- Comment #13 From Nikolas 'Atrus' Coukouma 2005-05-18 13:36:27 0000 -------
I've migrated "tell users to change mozilla pref" to it's own bug, 93100