Community
Participate
Working Groups
In order to wrap text using the gc (so that you can use ClearType or AntiAlias hints etc) the GDIPlus.dll has a method called GdipDrawString that takes a GPRECTF rectangle structure to allow wrapping of text. Could you expose it from your gdip class and hence your gc class? Currently I can use the Label widget without AntiAlias, but can wrap, or write my own Label class and can have AnitAlias but no wrapping.
This would probably require that a MeasureString overload is provided with a Rect as well.
While this is a valid request for new API in GC, you should be able to get what you want right now using TextLayout.setWidth().
I am having toruble using the TextLayout with an off screen bitmap. I was using an Image, getting its gc, setting advanced to true as well as setTextAntiAlias. Using the TextLayout doesn't seem to draw AntiAlias even on the display.
Can you enter a bug report with a snippet that shows the problem?
... maybe we can fix that bug for you (and others).
Added as Bug 242414 with Code Snippet
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.