Skip to content

Commit

Permalink
Merge pull request #1140 from mathjax/change-default-font
Browse files Browse the repository at this point in the history
Change default font to mathjax-newcm
  • Loading branch information
dpvc authored Nov 12, 2024
2 parents 14d96de + 199b9ac commit 85673d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/bin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"#menu/*": "mj-context-menu/cjs/*",
"#sre/*": "speech-rule-engine/cjs/*",
"#mhchem/*": "mhchemparser/dist/*",
"#default-font/*": "mathjax-modern-font/cjs/*"
"#default-font/*": "mathjax-newcm-font/cjs/*"
}
}
4 changes: 2 additions & 2 deletions components/mjs/node-main/node-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const dir = global.MathJax.config.__dirname; // set up by node-main.mjs or nod
* Set up the initial configuration
*/
combineDefaults(MathJax.config, 'loader', {
paths: {'mathjax-modern': 'mathjax-modern-font'},
paths: {'mathjax-newcm': 'mathjax-newcm-font'},
require: eval("(file) => import(file)"), // use dynamic imports
failed: (err) => {throw err} // pass on error message to init()'s catch function
});
combineDefaults(MathJax.config, 'output', {font: 'mathjax-modern'});
combineDefaults(MathJax.config, 'output', {font: 'mathjax-newcm'});

/*
* Mark the preloaded components
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"#menu/*": "mj-context-menu/js/*",
"#sre/*": "speech-rule-engine/js/*",
"#mhchem/*": "mhchemparser/esm/*",
"#default-font/*": "mathjax-modern-font/mjs/*"
"#default-font/*": "mathjax-newcm-font/mjs/*"
},
"files": [
"/bundle",
Expand Down Expand Up @@ -153,7 +153,7 @@
},
"dependencies": {
"@xmldom/xmldom": "^0.8.10",
"mathjax-modern-font": "^4.0.0-beta.7",
"mathjax-newcm-font": "^4.0.0-beta.7",
"mhchemparser": "^4.2.1",
"mj-context-menu": "^0.9.1",
"speech-rule-engine": "^4.1.0-beta.11",
Expand Down
2 changes: 1 addition & 1 deletion ts/output/common/FontData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export class FontData<
];

/**
* Characters to map back top other Unicode positions
* Characters to map back to other Unicode positions
* (holes in the Math Alphanumeric ranges)
*/
/* prettier-ignore */
Expand Down

0 comments on commit 85673d2

Please sign in to comment.