> A complete example which doesn't do what you want would be helpful.
Heh. Ooops. Sorry about that.
Here is the font drawing stuff.
XftFont *font;
XftDraw *draw;
XRenderColor render_color;
XftColor xft_color;
char *str = "Test String";
render_color.red = 189 * 257;
render_color.green = 182 * 257;
render_color.blue = 107 * 257;
render_color.alpha = 65535;
XftColorAllocValue (dis,
DefaultVisual(dis, screen),
DefaultColormap(dis, screen),
&render_color,
&xft_color);
font = XftFontOpen(dis, screen,
XFT_FAMILY, XftTypeString, "charter",
XFT_SIZE, XftTypeDouble, 12.0,
0);
draw = XftDrawCreate(dis, w,
DefaultVisual(dis, screen),
DefaultColormap(dis, screen));
XftDrawString8(draw, &xft_color, font, x, y, (XftChar8 *) str,
strlen(str));
Thanks again.
Ted.
_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render