Alpha and Text Rendering
Olivier Chapuis <[email protected]> Thu, 30 May 2002 15:13:12 +0200
| Newsgroups | gmane.comp.xfree86.render |
|---|---|
| Message-ID | <[email protected]> |
Hello, It seems that the alpha is not taken in account in a good way with the XftTextRender* and XftDrawString* functions (I do not check with XRenderCompositeString*). It seems that the computation of the final color for rendering the text is done always as if the background was white. In others words If I used a white (or a light) background the functions work as expected. But if I used a black (or dark) background and, says, a white foreground the text color does not depends on the alpha it is always (fully) white and not greyed at all. I used XRender and Xft from Xfree 4.2 (same problems with Xft from the current cvs). I've no problems with XftDrawRec and XRenderComposite, the alpha "channel/color" is taken in account in the good way (BTW it is a pleasure to work with XRenderComposite). Regards, Olivier