Delay between widget background and widget contents

Peter Harris pharris at opentext.com
Mon Dec 7 08:01:43 PST 2009


Christoph Bartoschek wrote:
> 
> I was wrong with the packets. The delay is caused earlier. The problem are all 
> the ListFonts calls.

Modern applications use client-side fonts instead of server-side fonts
in order to avoid this problem. Also, you only get anti-aliasing with
client-side fonts. You may want to see if you can tell your toolkit to
use client-side fonts instead.

> Is it correct that libX11 behaves in this way?

Yes.

> If it is necessary to send all 
> this requests, wouldn't it be possible to send all requests in a bundle?

You could do that with libXCB, but it's more work (since XCB is just a
thin wrapper around the protocol, and doesn't have as many 'helper'
functions as libX11).

You're probably better off just switching to client-side fonts (Tell
your toolkit, or use a library such as fontconfig, pango, or cairo).

Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866


More information about the xorg-devel mailing list