https://bugzilla.redhat.com/show_bug.cgi?id=1026871
Bug ID: 1026871 Summary: math rendering using stix-fonts in Firefox is broken Product: Fedora Version: 19 Component: stix-fonts Assignee: nicolas.mailhot@laposte.net Reporter: m@matejsmid.cz QA Contact: extras-qa@fedoraproject.org CC: fonts-bugs@lists.fedoraproject.org, nicolas.mailhot@laposte.net, paul@frixxon.co.uk, sochotni@redhat.com
Created attachment 819813 --> https://bugzilla.redhat.com/attachment.cgi?id=819813&action=edit Firefox rendeding of http://www.mathjax.org/demos/tex-samples/ wtih stix-fonts installed
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce: 1. 2. 3.
Actual results:
Expected results:
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
--- Comment #1 from Matej m@matejsmid.cz --- Created attachment 819817 --> https://bugzilla.redhat.com/attachment.cgi?id=819817&action=edit Firefox rendeding of http://www.mathjax.org/demos/tex-samples/ without stix-fonts installed (correct)
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
Matej m@matejsmid.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #819813|Firefox rendeding of |Firefox rendeding of description|http://www.mathjax.org/demo |http://www.mathjax.org/demo |s/tex-samples/ wtih |s/tex-samples/ with |stix-fonts installed |stix-fonts installed
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
--- Comment #2 from Matej m@matejsmid.cz --- (I accidentally sent incomplete bug report)
Description of problem:
Rendering of Mathjax math in Firefox is broken when stix-fonts are installed. Removal of the stix-fonts package solves the rendering issue.
Steps to Reproduce: 1. sudo yum install stix-fonts 2. open http://www.mathjax.org/demos/tex-samples/ in Firefox
Actual results: - see attached screenshot
Expected results: - see attached screenshot
Additional info:
The bug was already discussed here: https://github.com/mathjax/MathJax/issues/501
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
Michael Kovarik fractalsandflowers@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fractalsandflowers@gmail.co | |m
--- Comment #3 from Michael Kovarik fractalsandflowers@gmail.com --- Can reproduce this bug in F20.
According to the upstream bug discussion (thanks Matej), this is a Fedora-related issue. The problem is apparently the aliases stored at /etc/fonts/conf.d/61-stix.conf
The aliases map STIX 1.1.0 font names to 1.0 names. Apparently, these are not at all compatible, with 1.1.0 not fully readable by browsers. I think we should do what Debian and Arch (and probably everyone else) does, and not include any of such aliases.
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
Nicolas Mailhot nicolas.mailhot@laposte.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |NOTABUG Last Closed| |2014-02-11 14:16:45
--- Comment #4 from Nicolas Mailhot nicolas.mailhot@laposte.net --- (In reply to Michael Kovarik from comment #3)
The aliases map STIX 1.1.0 font names to 1.0 names. Apparently, these are not at all compatible, with 1.1.0 not fully readable by browsers.
I read this as "browsers do not want to update their code to work with Stix > 1.0"
Well, this is a browser bug. Upstream stix changed to take into account issues reported after their .0 release, it fixed actual correctness bugs and problems indentified in big apps such as office suites, it took it months of work and there's not way upstream is going back now
I realise 1.1 is a it harder to process since 1.0 was a pile of raw elements that lend them well to all sorts of hardcoded macros. Those hacks are history and it's high time browsers adapted.
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
Elliott Sales de Andrade quantum.analyst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |quantum.analyst@gmail.com
--- Comment #5 from Elliott Sales de Andrade quantum.analyst@gmail.com --- (In reply to Michael Kovarik from comment #3)
The aliases map STIX 1.1.0 font names to 1.0 names. Apparently, these are not at all compatible, with 1.1.0 not fully readable by browsers. I think we should do what Debian and Arch (and probably everyone else) does, and not include any of such aliases.
This description is backwards. The aliases map 1.0 names to 1.1.0. According to MathJax upstream, the glyphs in 1.0 are not at all the same as 1.1, so this mapping is useless.
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
--- Comment #6 from Elliott Sales de Andrade quantum.analyst@gmail.com --- (In reply to Nicolas Mailhot from comment #4)
I read this as "browsers do not want to update their code to work with Stix
1.0"
No, MathJax asks for 1.0, and fontconfig gives it 1.1, which is incompatible. If MathJax had asked for *any* version, then it would be a bug in MathJax, but it didn't.
Well, this is a browser bug. Upstream stix changed to take into account issues reported after their .0 release, it fixed actual correctness bugs and problems indentified in big apps such as office suites, it took it months of work and there's not way upstream is going back now
Upstream does not ship these aliases. If you look at the release notes, you see that several glyphs have changed locations, making these fonts incompatible. The aliases are purely a Fedora thing.
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
--- Comment #7 from Nicolas Mailhot nicolas.mailhot@laposte.net --- (In reply to Elliott Sales de Andrade from comment #6)
(In reply to Nicolas Mailhot from comment #4)
I read this as "browsers do not want to update their code to work with Stix
1.0"
No, MathJax asks for 1.0, and fontconfig gives it 1.1, which is incompatible. If MathJax had asked for *any* version, then it would be a bug in MathJax, but it didn't.
Sorry, that was a typo on my part. Should have written 1.1 here.
Well, this is a browser bug. Upstream stix changed to take into account issues reported after their .0 release, it fixed actual correctness bugs and problems indentified in big apps such as office suites, it took it months of work and there's not way upstream is going back now
Upstream does not ship these aliases. If you look at the release notes, you see that several glyphs have changed locations, making these fonts incompatible. The aliases are purely a Fedora thing.
I know that 1.1 has been restructured to fix various compatibility and spec problems. The aliases are not expected to provide full compatibility because you can only do so much at fontconfig level. But they are good enough for most simple documents.
The point is, 1.0 stix structure is obsolete and dead upstream, it's high time Mathjax adapted, and I won't create another TEX-like morass in Fedora with piles of obsolete fonts kept around to help code that does not want to update and does not feel the need to update because the obsolete parts are kept around by distributors.
Stix upsteam was very clear when they released 1.0 that it was not finished and that they would perform heavy changes in the near future. Mathjx had more than three years to fix itself now.
https://bugzilla.redhat.com/show_bug.cgi?id=1026871
--- Comment #8 from Elliott Sales de Andrade quantum.analyst@gmail.com ---
The point is, 1.0 stix structure is obsolete and dead upstream, it's high time Mathjax adapted, and I won't create another TEX-like morass in Fedora with piles of obsolete fonts kept around to help code that does not want to update and does not feel the need to update because the obsolete parts are kept around by distributors.
I'm sorry, but the developers disagree, and I quote:
The STIX-1.1 fonts include the STIXGeneral distribution as well as the STIX Word fonts. The STIX repository at SourceForge has four distribution files: STIXv1.1.1-webfonts.zip, which include the original STIXGeneral (called stix-web) as well as the STIX-MathJax web fonts; STIXv1.1.1-word.zip, which is the 5-font version in families STIX and STIXMath packaged for use with Word (the ones used by Fedora); STIXv1.1.0-latex.zip, which is the fonts packaged for use with TeX; and STIXv1.1.0.zip, which includes the original STIXGeneral as well as the STIX Word fonts. Note that *all* of these are STIX v1.1, the current version.
The first and last of these include the STIXGeneral fonts (updated to the v1.1 glyphs and positions), and these are the most recent files. Indeed, the STIX-webfonts archive is from this year, and includes the STIXGeneral packaging (not the word format). To say that STIpub as abandoned the STIXGeneral format is to deeply misunderstand the current situation. The STIXGeneral fonts are not v1.0, they are v1.1, just as STIX Word is. They are not an older version, and not obsolete or outdated. The Fedora aliasing of these names to STIX Word is broken, plain and simple.
fonts-bugs@lists.fedoraproject.org