Frédéric Wang has uploaded a new change for review. https://gerrit.wikimedia.org/r/164796
Change subject: Modify the math font-family for native MathML ...................................................................... Modify the math font-family for native MathML - upgrade to Latin Modern Math 1.959 with tweaked ascent/descent. - always use the WOFF tweaked latin modern math by default. - remove obsolete local fonts (MathJax and STIXGeneral). Bug: 70360 Change-Id: Icb6ae3770a3d56bc03453ff5604eabb4699f2595 --- M modules/LatinModern/MANIFEST-Latin-Modern-Math.txt D modules/LatinModern/README-Latin-Modern-Math.txt D modules/LatinModern/latinmodern-math.woff A modules/LatinModern/tweakedlatinmodern-math.woff M modules/ext.math.css 5 files changed, 13 insertions(+), 128 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/96/164796/1 diff --git a/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt b/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt index b8ec614..a5417bd 100644 --- a/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt +++ b/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt @@ -1,27 +1,11 @@ -########################################################################### -############ The TeX Gyre Collection of Fonts ############ -########################################################################### +This directory contains the Latin Modern Math font version 1.959 from -Font: Latin Modern Math -Authors: Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski -Version: 1.958 -Date: 14 I 2013 + http://www.gust.org.pl/projects/e-foundry/lm-math/download/ -Copyright 2012--2013 for TeX Gyre math extensions by B. Jackowski, -P. Strzelczyk and P. Pianowski (on behalf of TeX Users Groups). - -This work can be freely used and distributed under -the GUST Font License (GFL -- see GUST-FONT-LICENSE.txt) -which is actually an instance of the LaTeX Project Public License -(LPPL -- see http://www.latex-project.org/lppl.txt). - -This work has the maintenance status "maintained". The Current Maintainer -of this work is Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski. - -This work consists of the files listed in this file. +that has been adjusted to fix ascent/descent bugs in web rendering engines. Below, in three sections required by the GUST Font License, -font names and file names specific for the Latin Modern Math +font names and file names specific for the Tweaked Latin Modern Math font are listed. NOTE: the names of the directories are not subject to the renaming @@ -31,30 +15,15 @@ by clause 1 of GUST-FONT-LICENSE.txt 1.1 OTF menu names - Latin Modern Math - LatinModernMath-Regular + Tweaked Latin Modern Math + TweakedLatinModernMath-Regular 2. Files whose names should be changed in derived works as requested by clause 1 of GUST-FONT-LICENSE.txt - 2.1 otf/latinmodern-math.otf - - 2.2 doc/MANIFEST-Latin-Modern-Math.txt - doc/README-Latin-Modern-Math.txt - doc/presentation-lmodern_math.pdf - doc/math-test.tex - doc/math-test-context.tex - doc/test-context-latinmodern_math.pdf - doc/test-context-latinmodern_math.tex - doc/test-lualatex-latinmodern_math.pdf - doc/test-lualatex-latinmodern_math.tex - doc/test-xelatex-latinmodern_math.pdf - doc/test-xelatex-latinmodern_math.tex - doc/test-word-tg_latinmodern_math.docx - doc/test-word-tg_latinmodern_math.pdf + 2.1 tweakedlatinmodern-math.woff 3. Files whose names need not be changed in derived works as requested by clause 1 of GUST-FONT-LICENSE.txt - doc/GUST-FONT-LICENSE.txt - doc/INSTALL.txt + GUST-FONT-LICENSE.txt diff --git a/modules/LatinModern/README-Latin-Modern-Math.txt b/modules/LatinModern/README-Latin-Modern-Math.txt deleted file mode 100644 index 6697b5d..0000000 --- a/modules/LatinModern/README-Latin-Modern-Math.txt +++ /dev/null @@ -1,83 +0,0 @@ -########################################################################### -############ Latin Modern Collection of Fonts ############ -########################################################################### - -Font: Latin Modern Math -Authors: Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski -Version: 1.958 -Date: 14 I 2013 - -License: - % Copyright 2012--2013 for the Latin Modern math extensions by B. Jackowski, - % P. Strzelczyk and P. Pianowski (on behalf of TeX Users Groups). - % - % This work can be freely used and distributed under - % the GUST Font License (GFL -- see GUST-FONT-LICENSE.txt) - % which is actually an instance of the LaTeX Project Public License - % (LPPL -- see http://www.latex-project.org/lppl.txt). - % - % This work has the maintenance status "maintained". The Current Maintainer - % of this work is Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski. - % - % This work consists of the files listed - % in the MANIFEST-Latin-Modern-Math.txt file. - -########################################################################### -############ A BRIEF DESCRIPTION OF THE FONT ############ -########################################################################### - -Latin Modern Math is a math companion for the Latin Modern family -of fonts (see http://www.gust.org.pl/projects/e-foundry/latin-modern) in -the OpenType format. - -The math OTF fonts should contain a special table, MATH, described in the -confidential Microsoft document "The MATH table and OpenType Features -for Math Processing". Moreover, they should contain a broad collection -of special characters (see "Draft Unicode Technical Report #25. -UNICODE SUPPORT FOR MATHEMATICS" by Barbara Beeton, Asmus Freytag, -and Murray Sargent III). In particular, math OTF fonts are expected -to contain the following scripts: a basic serif script (regular, bold, -italic and bold italic), a calligraphic script (regular and bold), -a double-struck script, a fraktur script (regular and bold), a sans-serif -script (regular, bold, oblique and bold oblique), and a monospaced script. - -The basic script is, obviously, Latin Modern. Some scripts, however, -are borrowed from other fonts (the current selection, however, may -be subject to change), belonging, however, to the "TeX circle": - - * the calligraphic and fraktur alphabets are excerpted from the renowned - Euler family (http://en.wikipedia.org/wiki/AMS_Euler); - - * the double struck script is excerpted from Alan Jeffrey's bbold font - (http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/bbold/bbold.pdf) - - * the sans serif and monospaced alphabets are excerpted from - the Latin Modern Sans and Latin Modern Mono fonts - (http://www.gust.org.pl/projects/e-foundry/latin-modern); - sans serif bold Greek symbols (required by the already mentioned - "Unicode Technical Report #25") were prepared using D.E. Knuth's - font sources with some manual tuning - -The main math component, that is, the math extension, was programmed -from scratch, with an attempt to retain the visual compatiblility -with the original D.E. Knuth's fonts. In particular, all symbols -(with a few exceptions) appearing in the D.E. Knuth's "canonical" fonts -have the same width (rounded) as the corresponding Knuthian ones. - -Note that the members of all the mentioned alphabets, except -the main roman alphabet, should be considerd symbols, not letters; -symbols are not expected to occur in a text stream; instead, -they are expected to appear lonely, perhaps with some embellishments -like subscripts, superscripts, primes, dots above and below, etc. - -To produce the font, MetaType1 and the FontForge library were used: -the Type1 PostScript font containing all relevant characters was -generated with the MetaType1 engine, and the result was converted -into the OTF format with all the necessary data structures by -a Python script employing the FontForge library. - -The TeX Gyre Math Project was launched and is supported by -TeX USERS GROUPS (CS TUG, DANTE eV, GUST, NTG, TUG India, TUG, UK TUG). -Hearty thanks to the representatives of these groups and also -to all people who helped with their work, comments, ideas, -remarks, bug reports, objections, hints, consolations, etc. diff --git a/modules/LatinModern/latinmodern-math.woff b/modules/LatinModern/latinmodern-math.woff deleted file mode 100644 index 0b46642..0000000 --- a/modules/LatinModern/latinmodern-math.woff +++ /dev/null Binary files differ diff --git a/modules/LatinModern/tweakedlatinmodern-math.woff b/modules/LatinModern/tweakedlatinmodern-math.woff new file mode 100644 index 0000000..ac95d9d --- /dev/null +++ b/modules/LatinModern/tweakedlatinmodern-math.woff Binary files differ diff --git a/modules/ext.math.css b/modules/ext.math.css index 72a9a35..2171f3f 100644 --- a/modules/ext.math.css +++ b/modules/ext.math.css @@ -20,15 +20,14 @@ opacity: 0; } m|math { - /* Try OpenType MATH fonts, the WOFF fallback and the old math fonts */ - font-family: Cambria Math, Latin Modern Math, STIX Math, LatinModernMathWOFF, MathJax_Main, STIXGeneral, serif; + /* Use the tweaked Latin Modern Math WOFF font with possible fallback for local Open Type MATH fonts. */ + font-family: TweakedLatinModernMath, Cambria Math, Latin Modern Math, STIX Math, serif; } @font-face { - /* WOFF version of Latin Modern Math. - See https://github.com/fred-wang/MathFonts */ - font-family: LatinModernMathWOFF; - src: url(./LatinModern/latinmodern-math.woff); + /* WOFF version of Latin Modern Math, with tweaked ascent/descent metrics */ + font-family: TweakedLatinModernMath; + src: url(./LatinModern/tweakedlatinmodern-math.woff); } /* Default style for SVG. */ -- To view, visit https://gerrit.wikimedia.org/r/164796 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icb6ae3770a3d56bc03453ff5604eabb4699f2595 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Frédéric Wang <fred.w...@free.fr> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits