24 Aug
2012
24 Aug
'12
2:41 p.m.
Dmitry Timoshkov <dmitry(a)baikal.ru> wrote:
Vincent Povirk <madewokherd(a)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.