Forum Bugs

MathML with XML + CSS

Balaa
I've been working on trying to represent the MathML equations in PDF output. MathML mi variable content is not rendered the italic/bold formatting's. It's shows the "WarnockPro-Regular" style instead of italic style.

If I remove the custom font, then prince represent the MathMl equations in timesnewroman font style without any issues.


I tried with CSS:
math { display: inline; margin-left: 0.2em; margin-right: 0.2em; font-family:WarnockPro-Regular; font-weight:normal; font-style:normal; }

math[display="inline"] { display: inline; margin-left: 0.2em; margin-right: 0.2em; font-family:WarnockPro-Regular; font-weight:normal; font-style:normal; }

math[display="block"] { display: block; margin: 1em;font-family:WarnockPro-Regular;}
mi {display:inline; font-family:warnock-pro-italic;}

  1. mi.png247.5 kB
markbrown
Try putting font-style:italic in the last rule.