Commit 83dccc73 authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub

fix(image) export as image truncate strings (#2541)

* Use the renderer workaround to draw strings as image
Signed-off-by: default avatarRomain Bioteau <romain.bioteau@bonitasoft.com>
parent 1850fae5
......@@ -101,6 +101,8 @@ import com.google.common.base.Joiner;
public class BonitaStudioWorkbenchAdvisor extends WorkbenchAdvisor implements IStartup {
private static final String AWT_DRAW_STRING_AS_IMAGE = "drawStringAsImage";
private final class PreShutdownStudio implements IRunnableWithProgress {
@Override
......@@ -438,6 +440,8 @@ public class BonitaStudioWorkbenchAdvisor extends WorkbenchAdvisor implements IS
} else {
BonitaStudioLog.warning("Property 'bonita.tomcat.lib.dir' has not been set.", ApplicationPlugin.PLUGIN_ID);
}
// Workaround for STUDIO-3651
System.setProperty(AWT_DRAW_STRING_AS_IMAGE, System.getProperty(AWT_DRAW_STRING_AS_IMAGE, "true"));
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment