Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG font data is missing Delta symbol #347

Closed
dpvc opened this issue Nov 1, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@dpvc
Copy link
Member

commented Nov 1, 2012

The font data for the capital Delta seems to be missing from the font data, so the delta is taken from a different font and so doesn't match the TeX fonts well (wrong size and spacing).

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Jan 29, 2013

It turns out that the program that creates the SVG data files ends up thinking that Delta is the "increment" glyph (U+2206), and so puts the data for Delta in the wrong place (and loses the path data along the way). This will be fixd in the next release, but for now, you can use

<script type="text/x-mathjax-config">
MathJax.Hub.Register.LoadHook("[MathJax]/jax/output/SVG/fonts/TeX/Main/Regular/GreekAndCoptic.js",function () {
  var FONTS = MathJax.OutputJax.SVG.FONTDATA.FONTS;
  FONTS['MathJax_Main'][0x394] = [716,0,833,46,786,'51 0Q46 4 46 7Q46 9 215 357T388 709Q391 716 416 716Q439 716 444 709Q447 705 616 357T786 7Q786 4 781 0H51ZM507 344L384 596L137 92L383 91H630Q630 93 507 344'];
});
</script>

before the script that loads MathJax.js to add the Delta path data to the font when it is loaded. Be sure you don't get any extra linebreaks in the string at the end of the array.

@fred-wang

This comment has been minimized.

Copy link
Contributor

commented Mar 25, 2013

=> Do Not Write Automated test

@ghost ghost assigned dpvc Apr 16, 2013

@fred-wang

This comment has been minimized.

Copy link
Contributor

commented Apr 29, 2013

I guess this is just a matter of fixing the font data, so do not hesitate to skip the "Ready for review" step and directly do the fix on the develop branch.

@dpvc

This comment has been minimized.

Copy link
Member Author

commented May 1, 2013

I've added these into the develop branch in commit b4dc4d1.

@dpvc dpvc closed this May 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.