Move unkown character styles to fontdata.js (they are font-dependent)
This commit is contained in:
parent
c58b546ad7
commit
15ab276598
|
@ -46,7 +46,9 @@ MathJax.OutputJax.CommonHTML = MathJax.OutputJax({
|
||||||
// use "container" to compute size from containing element,
|
// use "container" to compute size from containing element,
|
||||||
// use "nn% container" for a portion of the container,
|
// use "nn% container" for a portion of the container,
|
||||||
// use "nn%" for a portion of the window size
|
// use "nn%" for a portion of the window size
|
||||||
}
|
},
|
||||||
|
|
||||||
|
undefinedFamily: "STIXGeneral,'Cambria Math','Arial Unicode MS',serif"
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,11 +40,19 @@
|
||||||
var ARROWREP = [0x2212,MAIN,0,0,0,0,.1]; // add depth for arrow extender
|
var ARROWREP = [0x2212,MAIN,0,0,0,0,.1]; // add depth for arrow extender
|
||||||
var DARROWREP = [0x3D,MAIN,0,0,0,0,.1]; // add depth for arrow extender
|
var DARROWREP = [0x3D,MAIN,0,0,0,0,.1]; // add depth for arrow extender
|
||||||
|
|
||||||
|
var UNDEFINEDFAMILY = CHTML.config.undefinedFamily;
|
||||||
|
|
||||||
|
MathJax.Hub.Insert(CHTML.config.styles,{
|
||||||
|
".MJXc-TeX-unknown-R": {"font-family":UNDEFINEDFAMILY, "font-style":"normal", "font-weight":"normal"},
|
||||||
|
".MJXc-TeX-unknown-I": {"font-family":UNDEFINEDFAMILY, "font-style":"italic", "font-weight":"normal"},
|
||||||
|
".MJXc-TeX-unknown-B": {"font-family":UNDEFINEDFAMILY, "font-style":"normal", "font-weight":"bold"},
|
||||||
|
".MJXc-TeX-unknown-BI": {"font-family":UNDEFINEDFAMILY, "font-style":"italic", "font-weight":"bold"},
|
||||||
|
});
|
||||||
|
|
||||||
CHTML.TEX = CHTML.TEXDEF; // use default TeX paramaters
|
CHTML.TEX = CHTML.TEXDEF; // use default TeX paramaters
|
||||||
CHTML.FONTDEF.TeX = {
|
CHTML.FONTDEF.TeX = {
|
||||||
version: VERSION,
|
version: VERSION,
|
||||||
|
|
||||||
TeX_factor: 1, // TeX em's to font em's
|
|
||||||
baselineskip: 1.2,
|
baselineskip: 1.2,
|
||||||
lineH: .8, lineD: .2,
|
lineH: .8, lineD: .2,
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,6 @@
|
||||||
STRUTHEIGHT = 1,
|
STRUTHEIGHT = 1,
|
||||||
AFUZZ = .08, HFUZZ = .025, DFUZZ = .025; // adjustments to bounding box of character boxes
|
AFUZZ = .08, HFUZZ = .025, DFUZZ = .025; // adjustments to bounding box of character boxes
|
||||||
|
|
||||||
var UNKNOWNFAMILY = "STIXGeneral,'Cambria Math','Arial Unicode MS',serif";
|
|
||||||
|
|
||||||
var STYLES = {
|
var STYLES = {
|
||||||
".MathJax_CHTML_Display": {
|
".MathJax_CHTML_Display": {
|
||||||
"display": "block",
|
"display": "block",
|
||||||
|
@ -104,11 +102,6 @@
|
||||||
".MJXc-space2": {"margin-left":".222em"},
|
".MJXc-space2": {"margin-left":".222em"},
|
||||||
".MJXc-space3": {"margin-left":".278em"},
|
".MJXc-space3": {"margin-left":".278em"},
|
||||||
|
|
||||||
".MJXc-TeX-unknown-R": {"font-family":UNKNOWNFAMILY, "font-style":"normal", "font-weight":"normal"},
|
|
||||||
".MJXc-TeX-unknown-I": {"font-family":UNKNOWNFAMILY, "font-style":"italic", "font-weight":"normal"},
|
|
||||||
".MJXc-TeX-unknown-B": {"font-family":UNKNOWNFAMILY, "font-style":"normal", "font-weight":"bold"},
|
|
||||||
".MJXc-TeX-unknown-BI": {"font-family":UNKNOWNFAMILY, "font-style":"italic","font-weight":"bold"},
|
|
||||||
|
|
||||||
"mjx-chartest": {
|
"mjx-chartest": {
|
||||||
display:"block",
|
display:"block",
|
||||||
position:"absolute", top:0,
|
position:"absolute", top:0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user