Here is my codes:
-----------------------------------------------
......
XftPatternAddString (pattern, "family", myFont);
XftPatternAddInteger (pattern, "pixelsize", 14);
XftPatternAddBool (pattern, "antialias", 1);
XftColorAllocName (dpy, DefaultVisual (dpy, DefaultScreen (dpy)), DefaultColormap (dpy, DefaultScreen (dpy)), "black", &color);
xftFont = XftFontOpenPattern (dpy, XftFontMatch (dpy, iScreen, pattern, &result));
xftDraw = XftDrawCreate (dpy, myWindow, DefaultVisual (dpy, DefaultScreen (dpy)), DefaultColormap (dpy, DefaultScreen (dpy)));
......
-----------------------------------------------
myFont is string referring to a Chinese font (simsun). If I chang myFont to another font, such as "courier", all are OK!
Does XFT load the whole font file into mem? The size of "simsun" is about 10M.