[HOME] jsMath (Authors) [Prev][Up][Skip][Next]

Using jsMath without Image Fonts

When a reader looks at a page that contains mathematics, jsMath will try to render that mathematics using the TeX fonts if they are available on the reader's computer. If not, it will fall back on images of the characters in the TeX fonts. These images are stored on your server, so they are always available to the user regardless of what fonts he or she has installed locally.

This method, however, requires that you have loaded the image fonts onto your server where jsMath can access them. Because the image fonts comprise thousands of small image files (one for each character in each font in each size), these can take considerable space on your server (on the order of 80MB), and you may not wish to expend that amount of space. (For example, you may be making a stand-alone CD that uses mathematics, and you can't afford to use 80MB of the disk for images.)

It is possible to install jsMath without these image fonts, if you need to conserve disk space, or if you are unable to load a large number of files to your server. To do this, include

   <SCRIPT SRC="path-to-jsMath/plugins/noImageFonts.js"></SCRIPT>

in your web page before loading jsMath.js. If you are using easy/load.js, you do not need to load this plugin. Instead, set the noImageFonts flag in the easy/load.js file.

If you plan to use any of the jsMath extra fonts, you will need to install the font's def.js file, but do not need to install the alpha and plain directories (that include all the image files). For example, if you install msam10, you should create a jsMath/fonts/msam10 directory and put the msam10/def.js file there.

Note that if you install the noImageFonts plugin, your readers will not be able to select the image-font or symbols-only fallback methods, and so they will be forced to use the unicode fallback method if they haven't installed the TeX fonts. While jsMath tries hard to make unicode mode work, it is not as reliable as the image-based fallback, since it is dependent on the fonts available on the user's system, and there is no guarantee that there are any unicode fonts available. If at all possible, you should make the image fonts available when you install jsMath.

Get jsMath at SourceForge.net. Fast, secure and Free Open Source software downloads [HOME] jsMath web pages
Created: 10 Jul 2005
Last modified: 13 Sep 2008 08:08:49
Comments to: dpvc@union.edu
[Next] The global plugin
[Skip] Browser Support for jsMath
[Up] Information for jsMath Authors
[Prev] The smallFonts plugin