[Webkit-unassigned] [Bug 133603] New: Use OpenType MATH fonts by default
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jun 7 06:27:01 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=133603
Summary: Use OpenType MATH fonts by default
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: MathML
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: fred.wang at free.fr
CC: bfulgham at webkit.org, cfleizach at apple.com,
mrobinson at webkit.org, gur.trio at gmail.com
Depends on: 108778,119038,133569
Blocks: 38377,99614
Firefox 31 (to be released in July) will recommend to use OpenType MATH fonts for MathML. I hope this will allow to get these fonts more popular and to get some bugs fixed (The GUST group said they will try to fix the bugs but I didn't get any feedback from the STIX consortium yet). For example "Cambria Math" is installed by default on Windows 7 or higher. I have opened enhancement requests for Mac OS (problem 16841023 for STIX and 17021145 for Latin Modern) and iOS (problem 16843041). On Linux, the texlive package is generally available and contains appropriate fonts (e.g. Latin Modern Math). For details, see https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts
Currently, our mathml.css stylesheet contains the following rules:
#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS
/* We explicitly include the font Symbol as it's the iOS equivalent of font STIXGeneral. */
font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif;
#else
font-family: MathJax_Main, STIXGeneral, STIXSizeOneSym, "DejaVu Sans", "DejaVu Serif", Cambria, "Cambria Math", "Lucida Sans Unicode", "Arial Unicode MS", "Lucida Grande", OpenSymbol, "Standard Symbols L", Times, serif;
#endif
I have already tested the OpenType MATH support on Linux and I think we could use at least add Latin Modern Math as the first default font.
On Windows, Gurpreet gets the best results with "Cambria Math" but I don't remember exactly if there were other serious rendering problems. I think "Cambria Math" should be the suggested as the default font on Windows. Firefox 31 for Windows also has some bugs with the other fonts at the moment.
On Mac, we need to fix bug 133569 first. Hopefully the enhancement requests I submitted for Mac OS and iOS will be addressed and we could change the default font-family.
One small problem is that MATH fonts generally only have a "Regular" style since the italic/bold/bold-italic are supposed to be picked from the math alpha num symbols (http://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols), and we don't do that yet (see bug 108778). Since we use CSS for these mathvariants, the rendering might not be as beautiful as if we would have used the math alpha num symbols.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list