Hi, Another status report.
I've done some work on getting Xft calls in the LessTif XmTextField. Some work is done on XmText as well but I need to figure out how to deal with the sub-widgets in there. Again. I guess my memory is just too short. Anyway, attached are two images of test/Xm/textf/test17 , once with a bold font, another time without that. The source is viewable at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/lesstif/lesstif/test/Xm/textf/test17.c?rev=HEAD&content-type=text/vnd.viewcvs-markup You can see in its source that at least some of the resources work : > "*one*fontName: verdana", > "*one*renditionForeground: red", > "*one*fontStyle: bold", > "*one.fontSize: 24", You can find the source code for all this in lib/Xm/TextF.c ; the URL above can help you locate that. Once again, this is still only compiled in if you add -DUSE_XFT to the Makefile manually, I've not included this in LessTif's configuration yet. XmText and XmTextField don't normally use an XmFontList for determining the display font. I've obviously had to do something about that, otherwise I didn't have a decent resource that I could use to pass in the right information. The logic I've currently implemented is : if the first font in the fontlist is an XFT one then we use that; otherwise the XmNfont is used (traditional behaviour). I am getting very confident that this can be made to work well, I'll start cleaning up the code. I may have to add a resource here and there (for efficiency), that's for the near future. So the questions : - what do you guys think about all this ? - does anyone want to reimplement all this in OpenMotif ? I'm working on Open Source projects only a couple of hours a week. I have a family and a real job that take up all the rest of my time. I'd estimate the time to implement this in OpenMotif to be small, actually. I'd say a man-week or less if we're counting working hours. Including cleaned up code obviously. Obviously help on getting this completed in LessTif is also welcome. Comments welcome ! Danny -- Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED]) Home page : http://users.skynet.be/danny.backx Projects: LessTif (http://lesstif.sourceforge.net) Xbae (http://xbae.sourceforge.net)
<<inline: test17.png>>
<<inline: test17-bold.png>>
