[Lazarus] National characters
cc_ at freemail.hu
cc_ at freemail.hu
Sat May 17 22:08:20 CEST 2008
Felipe Monteiro de Carvalho 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.
>
Gedit uses GtkSourceView to show the text.
GtkSourceView is descendant of GtkTextView.
I looked into GtkSourceView and GtkTextView and did not found calls to
gdk text functions (draw_text, draw_string). I've found pango calls.
Gdk (and cairo) is used to draw graphics elements and to do buffering.
> 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?
>
I'm saying that LCL can be switched to minimizes Pango overhead since it
will not get in the gtk1 performance (bidi, full unicode, antialias has
a price).
A tip: LCL uses PangoLayout that's a high level interface. It could use
the low level functions.
> About general drawing speed I don't remember any problems with
> lcl-gtk2, so we shouldn't try to fix it.
>
>
This is what i'm trying to say since the begin: cairo is used to do 2d
draw and because LCL does not uses cairo, the performance problem is
elsewhere.
>> 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 =)
>
Ok. Send me the info how to join.
Luiz
More information about the Lazarus
mailing list