[Lazarus] Cairo library usage

Mattias Gaertner nc-gaertnma at netcologne.de
Sun May 18 01:42:59 CEST 2008


On Sun, 18 May 2008 01:34:43 +0200
Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Sat, 17 May 2008 14:09:13 -0400
> Andrew Haines <AndrewD207 at aol.com> wrote:
> 
> >[...]
> > Attached is the test project I did. The text is assigned to the
> > PangoLayout one time only; after *_layout_render is used.
> > 
> > Hope you like the particularly verbose way to render pascal code :)
> > 
> > Avg time for 5000 paint cycles ms:
> > 
> > Pango: 12920
> > GDK:    2785
> 
> Ehm. The gdk version is *not* antialised on my screen.
> What must I change to get an antialiased font with the gdk version, so
> that I can compare them?

... and there is no double buffering.
SynEdit uses double buffering, either its own or the one provided by
the interface. In case of gtk1+2 it uses its own: It paints to a memory
bitmap and then copies to the canvas.


Mattias



More information about the Lazarus mailing list