[3/3] gdiplus: Make GdipMeasureCharacterRanges/GdipMeasureString/GdipDrawString add extra space around the text.

Dmitry Timoshkov dmitry at baikal.ru
Fri Aug 24 09:41:42 CDT 2012


Dmitry Timoshkov <dmitry at baikal.ru> wrote:

> Vincent Povirk <madewokherd at gmail.com> wrote:
> 
> > > These APIs use different logic for adding extra space, so at the moment
> > > I don't see how gdip_format_string() can be used to do this in one place,
> > > but if somebody has an idea how to do that - patches are welcome.
> > 
> > That is highly unlikely, particularly given that
> > MeasureCharacterRanges is the accepted practice for highlighting parts
> > of a string.
> 
> For instance accoding to the tests MeasureCharacterRanges adds extra space
> only to X, while GdipMeasureString and GdipDrawString also add extra space
> to Height and Width of the bounding rectangle.

GdipMeasureString and GdipDrawString add extra space to Y too.

-- 
Dmitry.



More information about the wine-devel mailing list