Display.getDPI() is deprecated. See eclipse-platform/eclipse.platform.swt#2925
The GraphicsToGraphics2DAdaptor used by GMF calls Display.getDPI() to calculate the correct font height:
|
int dpi = Integer.getInteger("org.eclipse.gmf.runtime.draw2d.ui.render.dpi", DisplayUtils.getDisplay().getDPI().x); //$NON-NLS-1$ |
|
float fsize = (float) height * (float) dpi / 72.0f; // display DPI / AWT DPI |
|
height = (int) fsize; |
I'm interested to know what could be done to solve this issue.
Display.getDPI()is deprecated. See eclipse-platform/eclipse.platform.swt#2925The
GraphicsToGraphics2DAdaptorused by GMF callsDisplay.getDPI()to calculate the correct font height:gmf-runtime/bundles/org.eclipse.gmf.runtime.draw2d.ui.render.awt/src/org/eclipse/gmf/runtime/draw2d/ui/render/awt/internal/graphics/GraphicsToGraphics2DAdaptor.java
Lines 1078 to 1080 in ccc53e5
I'm interested to know what could be done to solve this issue.