Dmitry Timoshkov dmitry@baikal.ru wrote:
Vincent Povirk madewokherd@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.