# SVG fontdata.js can't be included in a combined configuration file #413

Closed
opened this issue Mar 18, 2013 · 8 comments

Projects
None yet
4 participants
Member

### dpvc commented Mar 18, 2013

 Since SVG only has one font data file (currently) it would be nice to include that in the combined configuration files for SVG (a sponsor requested this). But there is a timing problem with if if you do. The SVG.fontDir is set in the SVG jax's Config method, so when the fontdata.js file is preloaded, that value is incorrect, and you don't get the proper loadComplete() call, and the SVG output hangs waiting for the file to load. This can be fixed by using a signal to check for the SVG Config before doing the loadComplete().

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Mar 18, 2013

 Wait for SVG to set the fontDir value before setting up the loadhooks… 
… or calling loadCompete. This allows fontdata.js to be included in combined configuration files. Resolves issue mathjax#413.
 4a024c2 
Member Author

### dpvc commented Mar 18, 2013

 Branch issue413 in my fork of MathJax includes the fix.
Member Author

### dpvc commented Mar 18, 2013

 A test case can be obtained by adding the fontdata.js file to the TeX-AMS-MML_SVG configuration file. The math will not be processed (it should time out waiting for the file).
Contributor

### fred-wang commented Mar 20, 2013

 OK, that looks good to me. I don't think an automated test is needed for this.
Member Author

### dpvc commented Mar 20, 2013

 OK, I've merged this in. I'm fine with not having a test for this.

### AleksLife commented Feb 17, 2016

 [Math Processing Error]latexdydx=f(x,y) I don't know how to fix the problem, any suggestion, but step by step please?
Member

### pkra commented Feb 18, 2016

 Please provide a (ideally minimal) live example exhibiting the problem.

### AleksLife commented Feb 24, 2016

 I have solved the problem. It was that I had duplicated or even triplicated the script used to enable mathjax on web platforms, because I activated the simple mathjax plugin without erasing some scripts I had put in the comments before. Anyway, thank you

### AleksLife commented Feb 24, 2016

 I have solved the problem. It was that I had duplicated or even triplicated the script used to enable mathjax on web platforms, because I activated the simple mathjax plugin without erasing some scripts I had put in the comments before Thak you anyway AVR 2016-02-18 3:22 GMT-05:00 Peter Krautzberger notifications@github.com: Please provide a (ideally minimal) live example exhibiting the problem. — Reply to this email directly or view it on GitHub #413 (comment).