Submitted by Anonymous on Tue, 01/09/2001 - 02:29. Developers
I created a Text Widget in Motif 1.2.X. I want to change the font but I notice that the only way to set the text is with an ASCII string. Can someone tell me the proper way to change Font ?
Mon, 07/02/2012 - 11:38
#1
Motif 1.2.X Text Widget
There`s an XmNfontList resource; it shows up in the man pages as being part of the "Text Output Resource Set". The type and usage are the same as for other Xm objects that you`re probably more familiar with.
So if I have this code fragment How would I set a new font from the XmNfontList resource of the Text Widget?
void Func (Widget TextW)
{
/*
Set New Font
*/
XmTextSetString (TextW, "Hello World");
}