![](https://secure.gravatar.com/avatar/46da49256462126dbe77187c073aa6c6.jpg?s=120&d=mm&r=g)
Hi all, Thanks a lot for this help. I tried again with modifications and it is working with wrong alignment. I am tried using simplefonts like \usemodule[simplefonts,vim,mathml] \setmainfont[LucidaStd] \setmonofont[CourierNew] If I add the above code then it overrides Hanss' suggestion but still the alignment is wrong. I am going to try more fonts to get the alignment right.
\startMPinclusions string metauml_defaultFont ; metauml_defaultFont := "\truefontname{Serif}" ; string metauml_defaultFontOblique ; metauml_defaultFontOblique := "\truefontname{SerifItalic}" ; string metauml_defaultFontBold ; metauml_defaultFontBold := "\truefontname{SerifBold}" ; string metauml_defaultFontBoldOblique ; metauml_defaultFontBoldOblique := "\truefontname{SerifBoldItalic}" ;
input metauml; \stopMPinclusions
At least prevents the error but alignment is weird. Some pseudo typesetting is going on and the quality is suboptimal then (after all mp just pastes glyphs then). Take this:
Class.A ("Point") ("+x: int", "+y: int") ();
It's probably no big deal for the author to support pictures instead of strings
Class.A ("Point") (btex +x: int etex, "+y: int") ();
Class.A ("Point") (textext("+x: int"), "+y: int") ();
It's probabaly already possible somehow but i have no time to look into the code in detail now.
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
-- Best regards, Shiv Shankar Dayal