GetTextExtend and DrawRotatedText

Vadim Zeitlin vadim at wxwindows.org
Mon Apr 2 14:42:36 PDT 2007


On Mon, 2 Apr 2007 17:07:29 +0200 Laurent Humbertclaude <laurent.humbertclaude at gmail.com> wrote:

LH> Unfortunately, rendering some rotated text gives wrong size compared
LH> to the width of the string. The string drawn is of the same size when
LH> using a rotation of 0, but the text is longer when drawn rotated.

 Unfortunately I have really no idea why does this happen. The only
possibility I see is that the adjustments done in DoGetTextExtent() using
GetCharABCWidths() are not appropriate for rotated strings but I really
don't see why would it be so. Still worth testing if this is the case
though -- please let us know if removing them helps.

 Good luck,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list