How to use a Exact Font

15 views
Skip to first unread message

Gökhan Keskin

unread,
Mar 16, 2016, 6:28:17 PM3/16/16
to MathJax Users
Hello Everyone,

I downloaded MathJax and opened the HTML test page named "sample-all-at-once.html". The equations look good. I used the same configuration (TeX-AMS_HTML-full) for my own pages but there were some misalignments. For example for 10^{37} 3 and 7 are not well-matched. After some trials and errors I discovered that the style below causes this:

body{
    font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
}

It is likely that MathJax tries to use a different font than the one it uses in the test page mentioned above. I want to use exactyle the same font as the test page. How can I solve this?

Davide P. Cervone

unread,
Mar 19, 2016, 9:57:27 AM3/19/16
to mathja...@googlegroups.com
> It is likely that MathJax tries to use a different font than the one it uses in the test page mentioned above.

No, it uses the same font for the math. The issue is that alignment is very dependent on the font SIZE in use (and how that size maps to the pixel grid of the screen). Try using a slightly larger or smaller font some and see if that helps.

> I want to use exactyle the same font as the test page. How can I solve this?

The test page uses the default browser font and size (since it doesn't set a don't itself). So you would have to not set the font or size on your page in order to get the same situation as in the test page.

Davide

Reply all
Reply to author
Forward
0 new messages