Vincent Povirk <madewokh...@gmail.com> wrote: > > + GdipFree(backup); > > I think you want GdipDeletePath.
Other places of GdipAddPathString implementation need this fixed as well then. > This seems very convoluted. Couldn't we just skip the size conversion > in get_log_fontW when graphics is NULL? Any cases where the scaling > would produce a size other than the em size need to be fixed in > GdipAddPathString anyway. GdipAddPathString already creates an HDC to select hfont into it, so using graphics object created from it seems pretty straightforward. -- Dmitry.