It is not just a config file change, as you need to provide MathJax
with data about the font glyphs, and you must provide the fonts in a
variety of formats (including the image fonts).
There are tools in the Mathjax-dev archive (https://github.com/mathjax/MathJax-dev
) that I used to create the fonts used by MathJax, but there is
virtually no documentation, and little effort has gone into making
them work for others than myself on my own installation. There would
be some work to do to get them to handle your own fonts, I expect.
See the MathJax-dev/fonts directory for the code.
Since you already have your own font created, you would probably not
need to use the OTF directory, but you would need to convert your
fonts to three forms: EOT, OTF, and SVG. There are tools there for
doing that, or you could use one of the web sites that do that for you
(e.g., http://www.fontsquirrel.com/).
Then you would need to use the AFM directory to make the data files
needed by MathJax. You should copy the TeX sub-directory and edit the
files to suit your needs. In particular, the config.pl file will need
to be modified, as it is specific to the TeX fonts. This will create
the data needed for the unpacked/jax/output/HTML-CSS/fonts directory,
except for the fontdata.js file. That you have to create by hand
(though the pre-loaded font data comes from the fontdata.js file
created in the AFM directory). It is the heart of the font system for
your fonts, and contains information about the names of the various
font files, the stretchy delimiters you have available, what fonts
correspond to the various mathvariant values, and how to remap glyphs
from one location to another. This is all pretty complicated and
tedious, and (unfortunately) completely undocumented. This will
probably be the stumbling block for you; you do have two examples,
however; the STIX and the TeX data files, so that might help, but note
that the STIX fonts are not web based, and so they don't have the
complications of setting up the CSS for that.
Finally, the IMG directory will let you make the images for the font.
I don't remember if this is set up to work with non-TeX fonts or not,
so it may need more work for that.
Anyway, that's the story on fonts for MathJax. It is not a task for
the faint of heart.
Davide
texlive-fonts-extra, texlive-fonts-extra-doc, texlive-fonts-recommended, texlive-fonts-recommended-doc,
and Fr�d�ric Wang
maths-informatique-jeux.com/blog/frederic
On 20/06/2013 15:11, Fr�d�ric WANG wrote:
> What you want is to copy the MathJax_Main-Regular.otf at the position
> 0x22A8.
to copy the *glyph in* MathJax_Main-Regular.otf at the position 0x22A8.
--