|Re: GEF diagrams are non-portable [message #636302 is a reply to message #636271]
||Sat, 30 October 2010 15:25
|| Jens von Pilgrim
Registered: July 2009
On 30.10.10 09:25, Denis Nedelyaev wrote:|
>> There is a mechanism in GMF, called MapMode.
> I think, it just converts logical units to device units and can't help
> to resolve the text rendering problem.
Actually I'm not really using this feature (I only know it because I
always has problems with it...)
Also the problem must be solved
> at level of GEF, not GMF.
That's probably true. Actually it's Draw2D where this problem has to be
> Probable one of best ways to resolve it is to use the Java2D
> capabilities of off-screen rendering instead of drawing text using SWT
This would be too much work and not really necessary. However, Kristian
has implemented text rendering using Java2D for GEF3D, so if you need
that you may look at that (it's somewhere in Draw3D). Anyway, I figure
it would be sufficient to simply adjust text size to the screen's DPI
settings. That is, you only have to implement your own
org.eclipse.draw2d.Graphics class (by extending one of the existing
implementations) and correct the text size.
Powered by FUDForum
. Page generated in 0.01704 seconds