Changed MISSINGFONT to undefinedFamily in SVG output in order to be consistent with HTML-CSS output
This commit is contained in:
parent
f3ed39a9ad
commit
f0efb3451c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -826,7 +826,7 @@ MathJax.Hub.Config({
|
|||
// that exists on the system (even if it doesn't contain the needed
|
||||
// character), so order these carefully.
|
||||
//
|
||||
MISSINGFONT: "STIXGeneral,'Arial Unicode MS',serif",
|
||||
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
|
||||
|
||||
//
|
||||
// This setting controls whether <mtext> elements will be typeset
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
|
||||
MathJax.OutputJax.SVG=MathJax.OutputJax({id:"SVG",version:"2.0",directory:MathJax.OutputJax.directory+"/SVG",extensionDir:MathJax.OutputJax.extensionDir+"/SVG",autoloadDir:MathJax.OutputJax.directory+"/SVG/autoload",fontDir:MathJax.OutputJax.directory+"/SVG/fonts",config:{scale:100,minScaleAdjust:50,font:"TeX",blacker:10,mtextFontInherit:false,MISSINGFONT:"STIXGeneral,'Arial Unicode MS',serif",addMMLclasses:false,EqnChunk:(MathJax.Hub.Browser.isMobile?10:50),EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:false,width:"container"},styles:{".MathJax_SVG_Display":{"text-align":"center",margin:"1em 0em"},"#MathJax_SVG_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",padding:"3px 4px"}}}});if(!MathJax.Hub.config.delayJaxRegistration){MathJax.OutputJax.SVG.Register("jax/mml")}MathJax.OutputJax.SVG.loadComplete("config.js");
|
||||
MathJax.OutputJax.SVG=MathJax.OutputJax({id:"SVG",version:"2.0",directory:MathJax.OutputJax.directory+"/SVG",extensionDir:MathJax.OutputJax.extensionDir+"/SVG",autoloadDir:MathJax.OutputJax.directory+"/SVG/autoload",fontDir:MathJax.OutputJax.directory+"/SVG/fonts",config:{scale:100,minScaleAdjust:50,font:"TeX",blacker:10,mtextFontInherit:false,undefinedFamily:"STIXGeneral,'Arial Unicode MS',serif",addMMLclasses:false,EqnChunk:(MathJax.Hub.Browser.isMobile?10:50),EqnChunkFactor:1.5,EqnChunkDelay:100,linebreaks:{automatic:false,width:"container"},styles:{".MathJax_SVG_Display":{"text-align":"center",margin:"1em 0em"},"#MathJax_SVG_Tooltip":{"background-color":"InfoBackground",color:"InfoText",border:"1px solid black","box-shadow":"2px 2px 5px #AAAAAA","-webkit-box-shadow":"2px 2px 5px #AAAAAA","-moz-box-shadow":"2px 2px 5px #AAAAAA","-khtml-box-shadow":"2px 2px 5px #AAAAAA",padding:"3px 4px"}}}});if(!MathJax.Hub.config.delayJaxRegistration){MathJax.OutputJax.SVG.Register("jax/mml")}MathJax.OutputJax.SVG.loadComplete("config.js");
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -826,7 +826,7 @@ MathJax.Hub.Config({
|
|||
// that exists on the system (even if it doesn't contain the needed
|
||||
// character), so order these carefully.
|
||||
//
|
||||
MISSINGFONT: "STIXGeneral,'Arial Unicode MS',serif",
|
||||
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif",
|
||||
|
||||
//
|
||||
// This setting controls whether <mtext> elements will be typeset
|
||||
|
|
|
@ -35,7 +35,7 @@ MathJax.OutputJax.SVG = MathJax.OutputJax({
|
|||
font: "TeX", // currently the only font available
|
||||
blacker: 10, // stroke-width to make fonts blacker
|
||||
mtextFontInherit: false, // to make <mtext> be in page font rather than MathJax font
|
||||
MISSINGFONT: "STIXGeneral,'Arial Unicode MS',serif", // fonts to use for missing characters
|
||||
undefinedFamily: "STIXGeneral,'Arial Unicode MS',serif", // fonts to use for missing characters
|
||||
|
||||
addMMLclasses: false, // keep MathML structure and use CSS classes to mark elements
|
||||
|
||||
|
|
|
@ -542,7 +542,7 @@
|
|||
+ String.fromCharCode((N&0x3FF)+0xDC00);
|
||||
}
|
||||
text = BBOX.TEXT(scale,c,{
|
||||
"font-family":variant.defaultFamily||SVG.config.MISSINGFONT,
|
||||
"font-family":variant.defaultFamily||SVG.config.undefinedFamily,
|
||||
"font-style":(variant.italic?"italic":""),
|
||||
"font-weight":(variant.bold?"bold":"")
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user