Pound symbol is italic by default.
senthilsam opened this issue · 2 comments
senthilsam commented
Hi I used to convert the below mathml equation using direct/mml2svg, the pound symbol is coming as italic by default. whereas i haven't specified any formatting here.
<mml:math><mml:mrow><mml:mtext>$</mml:mtext><mml:mn>1.60</mml:mn><mml:mo>/</mml:mo><mml:mtext>£</mml:mtext></mml:mrow></mml:math>
Please someone let me know how to solve this?
dpvc commented
The MathJax TeX fonts, which were derived from from Computer Modern Fonts, don't include an upright pound symbol, only the italic one. So you would have to specify a different font in order to get an upright one. For example, you could use
<mtext style="font-family:Times">£</mtext>
for that. Note, however, that for command-line use, the width of the character may not be computed correctly (MathJax needs the bounding box information for the characters, but doesn't have it for those that aren't in its own fonts).
senthilsam commented
Thank You