optional gap highlight

This commit is contained in:
Denis Molony 2019-11-01 13:51:39 +10:00
parent 7e0dda6c7e
commit 8e52f549a0
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.bytezone.diskbrowser.applefile;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
@ -34,6 +35,12 @@ public class FontFile extends AbstractFile
Graphics2D g2d = image.createGraphics ();
g2d.setComposite (AlphaComposite.getInstance (AlphaComposite.SRC_OVER, (float) 1.0));
if (false) // show gaps around the glyphs
{
g2d.setColor (new Color (245, 245, 245));
g2d.fillRect (0, 0, image.getWidth (), image.getHeight ());
}
int ptr = 0;
int x = borderX;
int y = borderY;