< prev index next >

application/org.openjdk.jmc.ui/src/main/java/org/openjdk/jmc/ui/misc/AwtCanvas.java

Print this page

        

*** 66,82 **** int scanlinePad = width * 3; byte[] byteData = ((DataBufferByte) imageAWT.getRaster().getDataBuffer()).getData(); imageDataSWT = new ImageData(width, height, 24, vpPalette, scanlinePad, byteData); Graphics2D graphicsAWT = imageAWT.createGraphics(); setAntiAliasing(graphicsAWT); ! graphicsAWT.setFont(new Font("OptionPane.font", Font.PLAIN, 12)); fixDPI(graphicsAWT); return graphicsAWT; } else { Graphics2D graphicsAWT = imageAWT.createGraphics(); setAntiAliasing(graphicsAWT); ! graphicsAWT.setFont(new Font("OptionPane.font", Font.PLAIN, 12)); graphicsAWT.clearRect(0, 0, width, height); fixDPI(graphicsAWT); return graphicsAWT; } } --- 66,82 ---- int scanlinePad = width * 3; byte[] byteData = ((DataBufferByte) imageAWT.getRaster().getDataBuffer()).getData(); imageDataSWT = new ImageData(width, height, 24, vpPalette, scanlinePad, byteData); Graphics2D graphicsAWT = imageAWT.createGraphics(); setAntiAliasing(graphicsAWT); ! graphicsAWT.setFont(new Font("OptionPane.font", Font.PLAIN, 12)); //$NON-NLS-1$ fixDPI(graphicsAWT); return graphicsAWT; } else { Graphics2D graphicsAWT = imageAWT.createGraphics(); setAntiAliasing(graphicsAWT); ! graphicsAWT.setFont(new Font("OptionPane.font", Font.PLAIN, 12)); //$NON-NLS-1$ graphicsAWT.clearRect(0, 0, width, height); fixDPI(graphicsAWT); return graphicsAWT; } }
< prev index next >