This article is from the FAQ, by with numerous contributions by others.
In order to set font information in MotifStrings, you can use the following
as a template:
sensorLabel: @Label
(# init::
(# s: @labelString;
t: @MotifString
(# init::
(#
do ('Sensor:','ItalFont',XmSTRING_DIRECTION_L_TO_R)
-> t.setTextSegment;
#);
#);
do (...)
t.init;
t->s.set;
#);
#);
 
Continue to: