XmFontListEntryGetFont Core

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
XmFontListEntryGetFont Core

Submitted by Anonymous on Thu, 02/07/2002 - 18:48. Developers
Help!

Running Solaris 5.5.1 and Motif 1.2.
Having problems with the following code...

XmFontList fontList;
XFontStruct *fontStruct;
XmFontContext fontContext;
XmFontListEntry fontListEntry;
Boolean fontStatus = False;

XtVaGetValues(currentWid, XmNfontList, &fontList, NULL);

initStatus = XmFontListInitFontContext(&fontContext, fontList);

if (initStatus)
{
fontListEntry = XmFontListNextEntry(fontContext);

if (fontListEntry)
{
fontStruct = (XFontStruct *) XmFontListEntryGetFont(fontListEntry, XmFONT_IS_FONT);
}

XmFontListFreeContext(fontContext);
}

The code is coring on the XmFontListEntryGetFont() call. I can change the call to XmFontListEntryGetTag() and print out the font tag with no problems. What`s the problem? Is it my code or is there a problem with this Motif call? Any help would be appreciated.

Randy Beebe
rbeebe@ciber.com

ICS_support

Well, it`s certainly possible. In this case, though, the best solution may be to take advantage of the several years` of bug fixing that have gone into more recent versions and upgrade from 1.2.n.