在windml配置中加了courier pitch12,Lucida sans pitch 12,程序如下:
uglDriverFind (UGL_FONT_ENGINE_TYPE, 0, (UGL_UINT32 *)&fontDrvId);
uglFontDriverInfo(fontDrvId, UGL_FONT_TEXT_ORIGIN, &textOrigin);
uglFontFindString(fontDrvId, "familyName=Lucida; pixelSize = 12", &systemFontDef);
if ((fontSystem = uglFontCreate(fontDrvId, &systemFontDef)) == UGL_NULL) { printf("Font not found. Exiting.\n"); return; }
但是systemFontDef是Times Rome 10字体,是配置有问题么?