rem: font = WMDefaultSystemFont(scr);  ifont = WMCreateFont(scr, "verdana,sans:pixelsize=12:italic"); if (ifont) { WMSetTextDefaultFont(text, ifont); WMReleaseFont(ifont); } else { WMSetTextDefaultFont(text, font); } WMReleaseFont(font); }
add: font = WMCreateFont(scr, FNAME":autohint=false"); WMSetTextDefaultFont(text, font); WMReleaseFont(font);
context: testText(WMScreen *scr){    WMWindow *win;    WMText *text;    FILE *file = fopen("wm.html", "rb");    windowCount++;    win = WMCreateWindow(scr, "testText");    WMResizeWidget(win, 500, 300);    WMSetWindowCloseAction(win, closeAction, NULL);    text = WMCreateText(win);    WMResizeWidget(text, 480, 280);    WMMoveWidget(text, 10, 10);    WMSetTextHasVerticalScroller(text, True);    WMSetTextEditable(text, False);    {        WMFont *font, *ifont;        font = WMDefaultSystemFont(scr);        //ifont = WMCopyFontWithStyle(scr, font, WFSEmphasized);        ifont = WMCreateFont(scr, "verdana,sans:pixelsize=12:italic");        if (ifont) {            WMSetTextDefaultFont(text, ifont);            WMReleaseFont(ifont);        } else {            WMSetTextDefaultFont(text, font);        }        WMReleaseFont(font);    }    if (file) {        char buf[1024];        WMFreezeText(text);        while(fgets(buf, 1023, file))            WMAppendTextStream(text, buf);        fclose(file);        WMThawText(text);    } else {        WMAppendTextStream(text,                           "Window Maker is the GNU window manager for the "                           "X Window System. It was designed to emulate the "                           "look and feel of part of the NEXTSTEP(tm) GUI. Its "                           "supposed to be relatively fast and small, feature "                           "rich, easy to configure and easy to use, with a simple "                           "and elegant appearance borrowed from NEXTSTEP(tm).");    }    WMRealizeWidget(win);    WMMapSubwidgets(win);    WMMapWidget(win);}