Skip to content

Commit

Permalink
issue #806
Browse files Browse the repository at this point in the history
  • Loading branch information
naveena-bellamkonda committed Mar 12, 2020
1 parent 7b08c0e commit d45f60d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 6 additions & 2 deletions mdw-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d45f60d

Please sign in to comment.