Remove woff fonts
1) Because enabling native MathML now requires special configuration steps from the users, they can as well just check their math font setup. Hence we remove the Web font fallback. 2) We then can actually just remove ext.math.desktop.css since no specific style is necessary any more on desktop. 3) We also no longer need to add the Web font to the list of font-family on the <math> element. We actually just remove the whole font-family rule so that it is up to web engines developers & users to decide the best math font to use (e.g. via the "Fonts for mathematics" option in the font preference menu of Firefox). Change-Id: I1818d288b0f28715a460e3163590e4d0374c42b4
This commit is contained in:
parent
7fa037e120
commit
be7be3becb
|
@ -193,7 +193,6 @@ class MathHooks {
|
|||
|
||||
$parser->getOutput()->addModuleStyles( [ 'ext.math.styles' ] );
|
||||
if ( $mode == 'mathml' ) {
|
||||
$parser->getOutput()->addModuleStyles( [ 'ext.math.desktop.styles' ] );
|
||||
$parser->getOutput()->addModules( [ 'ext.math.scripts' ] );
|
||||
$marker = Parser::MARKER_PREFIX .
|
||||
'-postMath-' . sprintf( '%08X', $n ++ ) .
|
||||
|
|
|
@ -41,7 +41,7 @@ class MathWikidataHook {
|
|||
},
|
||||
'formatter-factory-callback' => function( $format, FormatterOptions $options ) {
|
||||
global $wgOut;
|
||||
$styles = [ 'ext.math.desktop.styles', 'ext.math.scripts', 'ext.math.styles' ];
|
||||
$styles = [ 'ext.math.scripts', 'ext.math.styles' ];
|
||||
$wgOut->addModuleStyles( $styles );
|
||||
return new MathFormatter( $format );
|
||||
},
|
||||
|
@ -71,7 +71,7 @@ class MathWikidataHook {
|
|||
'value-type' => 'string',
|
||||
'formatter-factory-callback' => function( $format, FormatterOptions $options ) {
|
||||
global $wgOut;
|
||||
$styles = [ 'ext.math.desktop.styles', 'ext.math.scripts', 'ext.math.styles' ];
|
||||
$styles = [ 'ext.math.scripts', 'ext.math.styles' ];
|
||||
$wgOut->addModuleStyles( $styles );
|
||||
return new MathFormatter( $format );
|
||||
},
|
||||
|
|
|
@ -140,10 +140,6 @@
|
|||
"mobile"
|
||||
]
|
||||
},
|
||||
"ext.math.desktop.styles": {
|
||||
"position": "top",
|
||||
"styles": "ext.math.desktop.css"
|
||||
},
|
||||
"ext.math.scripts": {
|
||||
"scripts": "ext.math.js"
|
||||
},
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
% This is a preliminary version (2006-09-30), barring acceptance from
|
||||
% the LaTeX Project Team and other feedback, of the GUST Font License.
|
||||
% (GUST is the Polish TeX Users Group, http://www.gust.org.pl)
|
||||
%
|
||||
% For the most recent version of this license see
|
||||
% http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
|
||||
% or
|
||||
% http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
|
||||
%
|
||||
% This work may be distributed and/or modified under the conditions
|
||||
% of the LaTeX Project Public License, either version 1.3c of this
|
||||
% license or (at your option) any later version.
|
||||
%
|
||||
% Please also observe the following clause:
|
||||
% 1) it is requested, but not legally required, that derived works be
|
||||
% distributed only after changing the names of the fonts comprising this
|
||||
% work and given in an accompanying "manifest", and that the
|
||||
% files comprising the Work, as listed in the manifest, also be given
|
||||
% new names. Any exceptions to this request are also given in the
|
||||
% manifest.
|
||||
%
|
||||
% We recommend the manifest be given in a separate file named
|
||||
% MANIFEST-<fontid>.txt, where <fontid> is some unique identification
|
||||
% of the font family. If a separate "readme" file accompanies the Work,
|
||||
% we recommend a name of the form README-<fontid>.txt.
|
||||
%
|
||||
% The latest version of the LaTeX Project Public License is in
|
||||
% http://www.latex-project.org/lppl.txt and version 1.3c or later
|
||||
% is part of all distributions of LaTeX version 2006/05/20 or later.
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
###########################################################################
|
||||
############ The TeX Gyre Collection of Fonts ############
|
||||
###########################################################################
|
||||
|
||||
Font: Latin Modern Math
|
||||
Authors: Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski
|
||||
Version: 1.959
|
||||
Date: 5 IX 2014
|
||||
|
||||
Copyright 2012--2014 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.
|
||||
|
||||
Below, in three sections required by the GUST Font License,
|
||||
font names and file names specific for the Latin Modern Math
|
||||
font are listed.
|
||||
|
||||
NOTE: the names of the directories are not subject to the renaming
|
||||
restrictions.
|
||||
|
||||
1. Fonts whose names should be changed in derived works as requested
|
||||
by clause 1 of GUST-FONT-LICENSE.txt
|
||||
|
||||
1.1 OTF menu names
|
||||
Latin Modern Math
|
||||
LatinModernMath-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
|
||||
|
||||
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
|
Binary file not shown.
|
@ -27,11 +27,6 @@
|
|||
opacity: 0;
|
||||
}
|
||||
|
||||
m|math {
|
||||
/* Try some popular OpenType MATH fonts before the WOFF fallback */
|
||||
font-family: 'Cambria Math', 'Latin Modern Math', 'STIX Math', 'LatinModernMathWOFF', serif;
|
||||
}
|
||||
|
||||
/* Default style for the image fallback. */
|
||||
/* Note: We had to use !important rules because of conflicts with the style
|
||||
generated by Mathoid. See https://gerrit.wikimedia.org/r/#/c/166213/ */
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Document : ext.math.
|
||||
* Created on : 20.10.2014, 22:00:00
|
||||
* Author : fredw (Frédéric Wang)
|
||||
* Description:
|
||||
* Additional style, to load only on desktop.
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
/* WOFF version of Latin Modern Math.
|
||||
* See https://github.com/fred-wang/MathFonts
|
||||
*/
|
||||
font-family: 'LatinModernMathWOFF';
|
||||
src: url( ./LatinModern/latinmodern-math.woff );
|
||||
}
|
Loading…
Reference in New Issue