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
|
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 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 ?
I think texcm is better (but that's a matter of choice).
btw, where can I find licences for these packages?
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
I've migrated "tell users to change mozilla pref" to it's own bug, 93100