Bug 106249 - [Text] Selected text is not shown right with antialiasing
Summary: [Text] Selected text is not shown right with antialiasing
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-05 18:01 EDT by Yi Gao CLA
Modified: 2010-11-15 17:07 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Gao CLA 2005-08-05 18:01:26 EDT
TextFlow and related doesn't work for the selected text if antialiasing is on.
Comment 1 Randy Hudson CLA 2005-08-07 18:19:57 EDT
I don't see how this is critical since you can simply avoid calling 
setTextAntialias(int).
Comment 2 Yi Gao CLA 2005-09-15 02:52:30 EDT
If its parent turns the advanced graphics on, there is no way to turn it off 
from draw2d API
Comment 3 Randy Hudson CLA 2005-09-15 10:09:59 EDT
Right, so the parent should avoid turning it on. Or, it should turn it on 
temporarily and turn it off using Graphics.restoreState().
Comment 4 Randy Hudson CLA 2005-09-15 10:11:30 EDT
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.
Comment 5 Yi Gao CLA 2005-09-15 11:32:53 EDT
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.