XRT I want to have Chinese fonts appear in my XRT/gear widget tips, but the text shows up in a standard font, not the chinese font that I wish to have. How do I implement this?
Assuming you have Chinese text in the rest of your application, there's just one more thing you have to do to get it in your widget tips. The Widget Tips do not specifically inherit the FontList setting of the widget they are attached to, they must have that set separately. So you will need code something like the following:
<pre> /* Get the fontlist that's on your widget */ XtVaGetValues(myButton, XmNfontList, &fontlist, NULL);
/* Set this fontlist for the tips that are over this widget */ XrtGearTipsVaSetValues(myButton, XmNxrtGearFontList, fontlist, NULL); </pre>