Title: [170233] trunk/Source/WebCore
Revision
170233
Author
[email protected]
Date
2014-06-21 01:07:37 -0700 (Sat, 21 Jun 2014)

Log Message

[GTK][EFL] Use OpenType MATH fonts by default.
https://bugs.webkit.org/show_bug.cgi?id=133604

Reviewed by Chris Fleizach.

In order to support stretching of horizontal operators and large
operators in display mode as well as to improve the drawing of radicals,
we need to use an OpenType MATH table. This commit makes the MathML code
try "Latin Modern Math" first, which is an OpenType version of Knuth's
popular Computer Modern font and is packaged with most TeX
distributions (e.g. TeX Live on Linux). This should work well on the
EFL & GTK ports for which the initial OpenType MATH support has been
tested. Other ports will be handled later.

No new tests. This is already tested in LayoutTests/mathml/opentype/.

* css/mathml.css:
(math): Add "Latin Modern Math" as the first font-family of the <math> element.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (170232 => 170233)


--- trunk/Source/WebCore/ChangeLog	2014-06-21 06:04:26 UTC (rev 170232)
+++ trunk/Source/WebCore/ChangeLog	2014-06-21 08:07:37 UTC (rev 170233)
@@ -1,3 +1,24 @@
+2014-06-21  Frédéric Wang  <[email protected]>
+
+        [GTK][EFL] Use OpenType MATH fonts by default.
+        https://bugs.webkit.org/show_bug.cgi?id=133604
+
+        Reviewed by Chris Fleizach.
+
+        In order to support stretching of horizontal operators and large
+        operators in display mode as well as to improve the drawing of radicals,
+        we need to use an OpenType MATH table. This commit makes the MathML code
+        try "Latin Modern Math" first, which is an OpenType version of Knuth's
+        popular Computer Modern font and is packaged with most TeX
+        distributions (e.g. TeX Live on Linux). This should work well on the
+        EFL & GTK ports for which the initial OpenType MATH support has been
+        tested. Other ports will be handled later.
+
+        No new tests. This is already tested in LayoutTests/mathml/opentype/.
+
+        * css/mathml.css:
+        (math): Add "Latin Modern Math" as the first font-family of the <math> element.
+
 2014-06-20  Gyuyoung Kim  <[email protected]>
 
         Unreviewed EFL build fix since r170224.

Modified: trunk/Source/WebCore/css/mathml.css (170232 => 170233)


--- trunk/Source/WebCore/css/mathml.css	2014-06-21 06:04:26 UTC (rev 170232)
+++ trunk/Source/WebCore/css/mathml.css	2014-06-21 08:07:37 UTC (rev 170233)
@@ -15,7 +15,7 @@
     /* 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;
+    font-family: "Latin Modern Math", 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
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to