Re: gdiplus: Add support for horizontal string alignment to GdipDrawString

2009-06-07 Thread Vincent Povirk
On Sun, Jun 7, 2009 at 8:27 PM, Stephan Rose wrote: > Well it'd have to be top left and top right. Given those two, top center > will be determined by DrawText on it's own when given DT_CENTER > alignment. > > Ok I think that I'm really going to have to do is make a rotated test > app to see what h

Re: gdiplus: Add support for horizontal string alignment to GdipDrawString

2009-06-07 Thread Stephan Rose
On Sun, 2009-06-07 at 19:53 -0500, Vincent Povirk wrote: > This looks wrong to me. You're only adjusting the left coordinate, but > in case of a rotation in the world transform, you'll need to adjust > the top as well. > > Also, I think you may still be able to use DT_CENTER and DT_RIGHT > rather

Re: gdiplus: Add support for horizontal string alignment to GdipDrawString

2009-06-07 Thread Vincent Povirk
This looks wrong to me. You're only adjusting the left coordinate, but in case of a rotation in the world transform, you'll need to adjust the top as well. Also, I think you may still be able to use DT_CENTER and DT_RIGHT rather than measuring the string beforehand. Creating a rectangle something