On Mon, Jun 30, 2003 at 03:46:51PM +0400, Yaroslav Rastrigin wrote: > Tuomo Valkonen wrote: > >My suggestion would be an extended graphics context attributes structure > >XGCValuesExt and new versions of the functions that use this: XCreateGCExt, > >XChangeGCExt and so on. This way no extra drawing APIs would be needed for > >translucent drawing, AA fonts and whatever and e.g. converting apps to > >use blurred fonts would be trivial (just set an extended GC attribute) > >unless they expect drawing new text with another colour to erase old. > >Similarly I would add support for window translucency by introducing an > >XSetWindowAttributesExt structure and related functions. > > > Compatibility, anyone ? BTW, "blurred" (antialiased) fonts aren't just > translucensy
No, the extended GC parameters would have one flag to turn on blurring that could also affect lines etc. and not just fonts and another for additional translucency/whatever combining effects. > if, f.e, you're talking to XWin32 > Xserver, which has no support for _Ext line of requests (X is a > client-server, right ?), you would either fail or fall back to standart X > proto Fall back to standard X proto? The point is that this uses standard X proto except for these new functions to set extra GC parameters. If these extra functions aren't available, then you can't have AA fonts or translucency too bad, but the drawing code is still the same unlike with KludgeRender. (While it might be possible to fully emulate even this API in client side libaries, there can be absolutely no need to emulate AA and some uses of translucency could be replaced with use of stipple patterns.) -- Tuomo
