I'm converting some complicated drawing code that I originally wrote with native Win32 API calls. The problem is that I made extensive use of the clipping functionality of ExtTextOut (setting ETO_CLIPPED and passing in a RECT). This was partly to avoid text overlapping other areas but also because it allowed easy text alignment within the rectangle.
I have't been able to find any calls to ExtTextOut in the Draw source code that pass anything other than 0 for the flags and NULL for the RECT structure, so I assume this functionality is not directly supported. Can someone suggest a straightforward and efficient way of doing this? Drawing the text then clipping it by drawing over it is not an option unfortunately.
Thanks in advance.
Draw::Clip
or
Draw::Clipoff ?
However, one unfortunate feature of text output generally is that it does not seem like you cannot get precise clipping rectangle for given text and font - sometimes some parts are simply drawn outside font/text metrics... (strange, but true).