toggle antialiasing on the fly?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I need to toggle antialiasing on the fly for a xft_drawable, how can I do this?
Part of the reason I need this functionality, is that when I draw text on
bitmaps ( through XftDrawCreateBitmap ), the font is antialiased and not all
pixels are seen. I browsed source, and made some experiments, and found that
when text is painted on a bitmap via xrender,the red,green,and blue components
of XftColor.color don't apply, but the .alpha field only ( 0 - black, 0xffff -
white). OTOH, in may places in Xft source there is an implicit check whether
antialiasing is applied or not by checking (color.alpha != 0xffff).  I don't
know if the last observation is in any way relevant, but I suppose that there
must be a way to either conditionally, or unconditionally, to disable
antialiasing at least on bitmaps, although doing the same on pixmaps would be
also a good thing.

Any ideas? Thanks.
-- 
Sincerely,
	Dmitry

--- www.karasik.eu.org ---

The woods are full of people who want this job -- Dilbert




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux