Community
Participate
Working Groups
TextFlow and related doesn't work for the selected text if antialiasing is on.
I don't see how this is critical since you can simply avoid calling setTextAntialias(int).
If its parent turns the advanced graphics on, there is no way to turn it off from draw2d API
Right, so the parent should avoid turning it on. Or, it should turn it on temporarily and turn it off using Graphics.restoreState().
Sorry, "Right" meaning if the parent turns it on, the child can not turn it off. "Wrong" that there is no API to turn off advanced graphics. Popping or restoring the graphics state will restore the non-advanced mode.
You are right you can pop or restore the state. However, this will rely on the code other than the current figure which push the state. The code will be very hard to maintain. It is similar to a function that depends on the current call stack. If it is called from some callers, it works. but not for others. SWT have API that can explicitly switch graphics system.