Bug 183459

Summary: Poor MathML rendering on iOS 11 with the system font
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, darin, fred.wang, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: iOS 11   
See Also: https://bugs.webkit.org/show_bug.cgi?id=167728
Bug Depends on:    
Bug Blocks: 160161    
Attachments:
Description Flags
Testcase (extracted from the Mozilla MathML torture test)
none
Screenshot on iOS 11 (system fonts)
none
Screenshot on iOS 11 (STIX Two Math) none

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)