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?
Darek
In this case: the old work for me much better, than this new approach.
The rest will take time to check.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives