glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] alpha10 release?


From: Stéphane Magnenat
Subject: Re: [glob2-devel] alpha10 release?
Date: Thu, 16 Dec 2004 15:20:25 +0100
User-agent: KMail/1.7.1

> Without it you have to do a pushStyle/getStyle to get the width of a string
> in a given shape. This can potentially be a problem because the width
> depends on Font::Shape and not on color (so not on Font::Style, which
> includes Font::Shape and Color). We can keep the changes you did but we
> have to keep this Font::Style/Font::Shape semi-confusion in mind. If we do
> so, we also have to modify parts of libgag, for instance Text::paint where
> the getStringWidth is done outside pushFontStyle/getFontStyle. Before it
> was no problem, because getStringWidth took the shape as an argument. Now
> it is very buggy because the wrong getStringWidth is called, the one with a
> length argument, but the passed argument is the shape.
>
> Please have a look at this. We can discuss it tonight. I'm not sure your
> modification is the right way to solve the problem you addressed.

I just had a look at sources. We can keep your changes, but we have to check 
all getStringWidth/getStringHeight calls to be sure there is no problem.
It makes sens to get the width of the string as it will be drawn.

Steph




reply via email to

[Prev in Thread] Current Thread [Next in Thread]