[metapost] metauml: Change font of state name
Sebastian Waschik
sebastian.waschik at gmx.de
Fri Mar 20 18:21:46 CET 2009
Hello,
I like to change the font of a state-box in metauml. The problem is,
that I do not know the exact name. Here is an example:
input metauml;
beginfig(0)
State.A("A")();
Class.B("B")()();
%A.info.iText.iFont.name := metauml_defaultFontOblique;
B.info.iName.iFont.name := metauml_defaultFontOblique;
leftToRight(10)(A, B);
drawObjects(A, B);
endfig;
end
After reading the source code I thought iText would be right. But it is
not:
>> A.info.iText.iFont.name
>> "ptmro8r"
! Equation cannot be performed (numeric=string).
<to be read again>
;
l.7 ...t.iFont.name := metauml_defaultFontOblique;
I also tried: A.info.iFont.name, A.info.iName.iFont.name,
A.info.iPict.iFont.name, and several other names.
I use metauml 0.2.5 .
Greetings and TIA
Sebastian Waschik
More information about the metapost
mailing list