Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 552851

Summary: Report GMF fix concerning Fonts broken on Export to Image and Printing of bug 312723 in class copied in Sirius
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: maxime.porhel, pierre-charles.david
Version: 6.1.3   
Target Milestone: 6.1.4   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/152342
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=dc038cde6d2c184c0b18b202b600654860417ecd
Whiteboard:
Bug Depends on:    
Bug Blocks: 552977    
Attachments:
Description Flags
552851.sample.zip
none
Illustration showing the issue and result with proposed fix none

Description Laurent Redor CLA 2019-11-08 11:23:32 EST
A fix, concerning font problem on print or on export to image, has been done in GMF (bug 312723).
Sirius used a copy of the class containing the fix (org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.graphics.GraphicsToGraphics2DAdaptor) so we can directly fix it in the Sirius copy (org.eclipse.sirius.diagram.ui.tools.internal.render.SiriusGraphicsToGraphics2DAdaptor).
Comment 1 Eclipse Genie CLA 2019-11-08 11:29:01 EST
New Gerrit change created: https://git.eclipse.org/r/152342
Comment 3 Laurent Redor CLA 2019-11-13 02:25:30 EST
Created attachment 280613 [details]
552851.sample.zip

Steps to validate:
* This problem is OS dependant. Ensure to have the problem in a previous version before validating it. At least several Linux OS have the problem. I have not the problem in Windows 10.
* Import project 552851.sample from (552851.sample.zip)
* Under "root" package, create a new "Diagram552851" representation
* Export it as SVG image with the "Export diagram as image" tool in the tabbar
* Open the SVG image
* Expected: The labels must not be truncated.
Comment 4 Maxime Porhel CLA 2019-11-13 05:41:32 EST
Created attachment 280620 [details]
Illustration showing the issue and result with proposed fix
Comment 5 Pierre-Charles David CLA 2019-11-18 04:23:40 EST
Verified under Linux on v6.1.4rc2.
Comment 6 Pierre-Charles David CLA 2020-03-09 05:52:26 EDT
Available in Sirius 6.1.4, see https://wiki.eclipse.org/Sirius/6.1.4 for details.