text and compositing

Jon Smirl jonsmirl at yahoo.com
Sat Apr 24 04:59:15 EST 2004


With xserver apps normally paint into a rectangluar window implemented in
something like a pbuffer. These windows are then composited onto the display.

Suppose xserver is transforming my app window into a trapezoid or some other odd
shape. Does my app paint into the pbuffer and then xserver applies the
transform, or does xserver apply the transform while my app is painting into the
pbuffer? The second case would yield a non-rectangluar image which would be
framed by a transparent area.

This makes a different in font generation. In the first case the app puts the
bitmap of the font into the pbuffer and then the pbuffer is transformed. This
distorts the font. In the second case the font could be generated with the
correct aliasing for the transformed buffer.

=====
Jon Smirl
jonsmirl at yahoo.com


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash



More information about the xserver mailing list