Menu

#40 Trouble in fonts installation

open
nobody
5
2011-09-05
2011-09-05
No

Hello,
I am having trouble installing and getting to work the fonts. Here is the additions I made to easy/load.js. I am running on Windows 7 64bit with Firefox browser 6.0.1. I have the fonts under /jsMath/fonts. Thank You in advance.

Thanks,
Micah

Discussion

  • Micah Kimbrough

    Micah Kimbrough - 2011-09-05

    load.js

     
  • Micah Kimbrough

    Micah Kimbrough - 2011-09-05

    I wanted to add that down at the bottem it says can not load /fonts/cm-fonts/alpha/def.js.

    Thanks again,
    Micah

     
  • Davide P. Cervone

    Your load.js file has some problems. First, the fonts in the loadFonts section are not specified correctly: you should have "cmbx10" rather than "fonts/cmbx10", etc. Also, you should not list cmbx10, cmex10, cmmi10, cmr10, cmsy10, or cmti10, as these are already pre-loaded by MathJax. Finally, you should not list any of the fonts starting with "jsMath-" as these are not supposed to go on the server, they are supposed to be installed on the user's computer (the one running the browser). So all of these will cause problems.

    Second, your loadFiles array seems to include all possible extensions and plugins, but I doubt that is what you really want. For example, you probably don't want CHMmode unless you are using Microsoft's help reader. You also don't want autoload.js, which is an alternative way of loading MathJax. I doubt you want spriteImageFonts.js (an experimental image font approach), or either of the mimeTeX files (unless you really want to emulate mimeTeX's notation). Many of the plugins or extensions are loaded automatically, and don't need to be included by hand. This is true of tex2jax, for example, as well as bbox, font, double-click, fbox, HTML, mathchoice, newcommand, verb, underset-overset, etc. You should not include features you don't need or understand, and loading everything there is is not a good idea, in general.

    The loadFonts errors may be the source of the problem, but I suspect it is actually that you haven't installed the fonts on your server properly. If you have put the jsMath-* files there, for example, then that is not correct. Be sure you have downloaded

    https://sourceforge.net/projects/jsmath/files/jsMath%20Image%20Fonts/1.3/

    and installed the fonts directory that it contains in your jsMath directory. The error message you indicate in your comment (can't load /fonts/cm-fonts/alpha/def.js) suggests that you haven' t installed this archive. Have you checked that the jsMath/fonts/cm-fonts/alpha/def.js file exists and is readable to the web server?

    Davide

     

Log in to post a comment.