Changeset 170233 in webkit


Ignore:
Timestamp:
Jun 21, 2014 1:07:37 AM (10 years ago)
Author:
fred.wang@free.fr
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r170229 r170233  
     12014-06-21  Frédéric Wang  <fred.wang@free.fr>
     2
     3        [GTK][EFL] Use OpenType MATH fonts by default.
     4        https://bugs.webkit.org/show_bug.cgi?id=133604
     5
     6        Reviewed by Chris Fleizach.
     7
     8        In order to support stretching of horizontal operators and large
     9        operators in display mode as well as to improve the drawing of radicals,
     10        we need to use an OpenType MATH table. This commit makes the MathML code
     11        try "Latin Modern Math" first, which is an OpenType version of Knuth's
     12        popular Computer Modern font and is packaged with most TeX
     13        distributions (e.g. TeX Live on Linux). This should work well on the
     14        EFL & GTK ports for which the initial OpenType MATH support has been
     15        tested. Other ports will be handled later.
     16
     17        No new tests. This is already tested in LayoutTests/mathml/opentype/.
     18
     19        * css/mathml.css:
     20        (math): Add "Latin Modern Math" as the first font-family of the <math> element.
     21
    1222014-06-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    223
  • trunk/Source/WebCore/css/mathml.css

    r170005 r170233  
    1616    font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif;
    1717#else
    18     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;
     18    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;
    1919#endif
    2020}
Note: See TracChangeset for help on using the changeset viewer.