[Lazarus] Cairo library usage
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat May 17 19:51:38 CEST 2008
On Sat, 17 May 2008 12:45:47 -0300
"Felipe Monteiro de Carvalho" <felipemonteiro.carvalho at gmail.com> wrote:
> On Sat, May 17, 2008 at 12:19 PM, Luiz Americo Pereira Camara
> <luizmed at oi.com.br> wrote:
> > For text, is still necessary to use pango (unlike LCL writes your
> > own wrapper around FreeType/FontConfig, Win32 fonts, CGFont
> > systems). Gdk text functions are deprecated/unmaintaned.
>
> In the dev mailling list someone took a look at gedit code and said it
> uses gdk to draw it's text.
I took a quick look: pango is used to allocate fonts,
but drawing text seems to be only done by gdk/gtk functions.
> Whatever we are doing now in gtk2 text (which is used pango) is very
> wrong, because the performance is horrible. There must be a solution,
> or are you saying that there is no solution to improve the text
> drawing speed of gtk2 intf?
It depends.
Andrew compared pango vs gdk text drawing and the gdk was 5 times
faster.
But pango automatically supports BIDI, paragraphs and many unicode
issues.
> About general drawing speed I don't remember any problems with
> lcl-gtk2, so we shouldn't try to fix it.
>
> > In this case, if you change your mind i'm still here.
>
> We would appreciate if you join the dev mailling list and work into
> splitting the events system, as proposed by Paul in the dev mailling
> list =)
Mattias
More information about the Lazarus
mailing list