Description
In GEF rendering of strings is usually tightly coupled to calculating sizes of string, e.g. before tooltips are rendered the required sizes is calculated and the parent Shell is resized to it. Having the advanced mode enabled or disabled in the GC can return in different sizes for the same text - usually the advanced mode will return bigger sizes. If the text size was calculated without the advanced mode and the rendering is done with it, this can result in a cut-off text.
As the advanced mode for the GC can be activated on different ways (e.g. setting anti alias, setting a transform, drawing a path) it is usually impossible to predict whether it will be used when text sizes are calculated, as this is done before the rendering. Therefor always using the advanced mode for the GC in GEF be preferred.
To Do
Two main topics for this issue are:
- Evaluate and decide on the best way to ensure this, e.g. explicitly setting it in GEF with
GC#setAdvanced in all places or activating it in Drawable#internal_new_GC. One alternative could be to make the advanced mode the default for GC - at least in windows
- Ensure no test failures for GEF