Forum Bugs

Problem with embedding MathJax fonts


I'm having a problem with generating a PDF using special glyphs (such as ∫) with a MathJax font. The HTML used is:
                <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
                        /* MathJax_Size2, Regular */
                        @font-face {
                            font-family: "MathJax_Size2";
                            font-weight: normal;
                            font-style: normal;
                            font-stretch: normal;
                            src: url("MathJax_Size2-Regular.otf")

                hello ∫∫∫ <span style="font-family: MathJax_Size2, monospace;">hello ∫∫∫</span>

The font file can be obtained at

I attach the generated pdf.

In Mac OS X 10.5 Preview, the second set of integral signs (which are rendered in the MathJax font) are rendered as missing glyph boxes.

This is likely just a bug with Preview, as in this post:

as the glyphs are rendered correctly in acrobat reader.

Thanks for great software,
  1. test-int.pdf26.5 kB
    Generated PDF
Yes, this sounds like the same bug in MacOS X Preview that affects OpenType fonts with PostScript/CFF outlines (.otf files). There is another way of embedding these fonts in PDF files, but this can cause issues with other PDF readers. We will investigate this issue.
We have included a workaround for this issue in the latest build.