Skip to content

Commit 0027123

Browse files
committed
Fix - disable useFontCache for SVG mathjax output
Let store produced SVG into PNG or any other vector output
1 parent c130d10 commit 0027123

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/JSRootCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
'MathJax': {
5858
exports: 'MathJax',
5959
init: function () {
60-
MathJax.Hub.Config({ TeX: { extensions: ["color.js"] }, SVG: { mtextFontInherit: true } });
60+
MathJax.Hub.Config({ TeX: { extensions: ["color.js"] }, SVG: { mtextFontInherit: true, minScaleAdjust: 100, matchFontHeight: true, useFontCache: false } });
6161
MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
6262
var VARIANT = MathJax.OutputJax.SVG.FONTDATA.VARIANT;
6363
VARIANT["normal"].fonts.unshift("MathJax_SansSerif");

scripts/mathjax_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MathJax.Hub.Config({ TeX: { extensions: ["color.js"] }, SVG: { mtextFontInherit: true, minScaleAdjust: 100, matchFontHeight: true } });
1+
MathJax.Hub.Config({ TeX: { extensions: ["color.js"] }, SVG: { mtextFontInherit: true, minScaleAdjust: 100, matchFontHeight: true, useFontCache: false } });
22
MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
33
var VARIANT = MathJax.OutputJax.SVG.FONTDATA.VARIANT;
44
VARIANT["normal"].fonts.unshift("MathJax_SansSerif");

0 commit comments

Comments
 (0)