Bug 183459 - Poor MathML rendering on iOS 11 with the system font
Summary: Poor MathML rendering on iOS 11 with the system font
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified iOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 160161
  Show dependency treegraph
 
Reported: 2018-03-08 09:38 PST by Frédéric Wang (:fredw)
Modified: 2018-03-08 09:42 PST (History)
5 users (show)

See Also:


Attachments
Testcase (extracted from the Mozilla MathML torture test) (3.34 KB, text/html)
2018-03-08 09:38 PST, Frédéric Wang (:fredw)
no flags Details
Screenshot on iOS 11 (system fonts) (52.94 KB, image/png)
2018-03-08 09:41 PST, Frédéric Wang (:fredw)
no flags Details
Screenshot on iOS 11 (STIX Two Math) (57.35 KB, image/png)
2018-03-08 09:42 PST, Frédéric Wang (:fredw)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2018-03-08 09:38:48 PST
Created attachment 335307 [details]
Testcase (extracted from the Mozilla MathML torture test)

This is the counterpart of bug 167728 but for iOS.

It seems iOS 11 ships now some fonts that allow to draw e.g. Mathematical Alphanumeric Symbols or radicals. However, default rendering still has several issues:

- some vertical fences do no stretch to the desired size
- integrals and summation symbols are too small
- some scripts are wrongly placed
- vertical spacing in nested roots is too narrow
- probably more... See https://trac.webkit.org/wiki/MathML/Fonts for details.

From the STIX Two release notes (https://sourceforge.net/projects/stixfonts/files/Current%20Release/STIXv2.0.0.zip/download):

"Earlier versions of the STIX fonts are deprecated and no longer supported. We urge all users of the STIX fonts to upgrade to the new versions as soon as possible."

From Jacques Distler blog (https://golem.ph.utexas.edu/~distler/blog/archives/002926.html):

"The STIX Two fonts were released this week. They represent a big improvement on Version 1, and are finally definitively better than LatinModern for displaying MathML on the web. [...] In an ideal world, OS vendors would bundle the STIX Two fonts with their next release (as Apple previously bundled the STIX fonts with MacOSX ≥10.7)"
Comment 1 Radar WebKit Bug Importer 2018-03-08 09:39:04 PST
<rdar://problem/38266306>
Comment 2 Frédéric Wang (:fredw) 2018-03-08 09:41:46 PST
Created attachment 335308 [details]
Screenshot on iOS 11 (system fonts)
Comment 3 Frédéric Wang (:fredw) 2018-03-08 09:42:21 PST
Created attachment 335309 [details]
Screenshot on iOS 11 (STIX Two Math)