From d45f60dfa581e1adb0a210211d0eb2e272c5ce73 Mon Sep 17 00:00:00 2001 From: aa88955 Date: Thu, 12 Mar 2020 12:38:04 +0530 Subject: [PATCH] issue #806 --- mdw-common/build.gradle | 8 ++++++-- .../src/com/centurylink/mdw/image/PngProcessExporter.java | 8 -------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/mdw-common/build.gradle b/mdw-common/build.gradle index d8e1628e31..d78683e8a5 100644 --- a/mdw-common/build.gradle +++ b/mdw-common/build.gradle @@ -100,8 +100,12 @@ dependencies { compileOnly fileTree(dir: "../mdw/libs", include: "mdw-draw.jar") draw fileTree(dir: "../mdw/libs", include: "mdw-draw.jar") - compileOnly group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13' - compileOnly group: 'com.itextpdf.tool', name: 'xmlworker', version: '5.5.13' + compile fileTree(dir: "../mdw/libs", include: "mdw-draw.jar") + compile fileTree(dir: "../mdw/libs", include: "kotlin-stdlib-1.2.61.jar") + compile fileTree(dir: "../mdw/libs", include: "autolink.jar") + + compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13' + compile group: 'com.itextpdf.tool', name: 'xmlworker', version: '5.5.13' } clean { diff --git a/mdw-common/src/com/centurylink/mdw/image/PngProcessExporter.java b/mdw-common/src/com/centurylink/mdw/image/PngProcessExporter.java index 32e79e6768..33be622616 100644 --- a/mdw-common/src/com/centurylink/mdw/image/PngProcessExporter.java +++ b/mdw-common/src/com/centurylink/mdw/image/PngProcessExporter.java @@ -52,14 +52,6 @@ protected BufferedImage printImage(Process process) { Graphics2D g2d = image.createGraphics(); g2d.setBackground(Color.WHITE); g2d.clearRect(0, 0, image.getWidth(), image.getHeight()); - Toolkit tk = Toolkit.getDefaultToolkit(); - Map map = (Map)tk.getDesktopProperty("awt.font.desktophints"); - if (map != null) { - g2d.addRenderingHints(map); - } - g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); - g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); - g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); ProcessCanvas canvas = new ProcessCanvas(project, process); canvas.prepare();