On Tue, 25 Apr 2006 18:32:28 +0200 darekm <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > >On Tue, 18 Apr 2006 21:15:26 +0200 > >darekm <[EMAIL PROTECTED]> wrote: > > > > > > > >>Hi > >> attached patch is fo tLabel > >> under GTK2 paint for tLabel is invoked many times, because GTK2 has > >>enabled rendering, painted tex show very bad after some piece of time. > >> for multiline text space between lines are to huge > >> setup size and color of tLabel are make up. > >> > >> > > > >- LineHeight:=GetTextHeight(DCTextMetric); > >+ LineHeight:=DCTextMetric.TextMetric.tmHeight; > > > >The purpose of GetTextHeight is to return the correct height. > >If you think, a function returns the wrong value, then please fix the > >function. > > > > > with textheight is problem > > GetTextHeight(DCTextMetric) return only tmAscent (without tmDescent) > > and secont > TextHeight('oooo') is less than TextHeight('hhhh'), when it is used to > multi line space between lines float on text > > > and what with char with accent like Ó (its greater than O) > > in last patch is my small proposition, but which is proper?
I'm not sure. With tmHeight I get the wrong values. Synedit moves all lines some pixels below and cuts the rest. GetTextHeight does not have this problem. Maybe there is another bug somewhere else. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives