OK, but if the rect passed to GdipDrawString has a non-zero width, and depending on the string formatting options, GdipDrawString may wrap the text. GdipMeasureString will not wrap the text if you call it with a width of 0.
On Mon, May 14, 2012 at 9:37 AM, Dmitry Timoshkov <dmi...@baikal.ru> wrote: > Vincent Povirk <madewokh...@gmail.com> wrote: > >> If the string wraps, and you don't give the width to >> GdipMeasureString, won't it return a too small height? > > GdipMeasureString considers an empty rect as a rect without clipping. > > -- > Dmitry.