# Problem with embedding MathJax fonts

almailer
Hi,

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

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


The font file can be obtained at https://github.com/mathjax/MathJax/blob/master/fonts/HTML-CSS/TeX/otf/MathJax_Size2-Regular.otf

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: http://www.princexml.com/bb/viewtopic.php?f=2&t=20960

as the glyphs are rendered correctly in acrobat reader.

Thanks for great software,
Alastair
mikeday
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.
mikeday
We have included a workaround for this issue in the latest build.