void (Graphics2D g, char c, int x, int y) { if (c >= NUM_CHARACTERS) return; for (int i = 0; i < CHAR_HEIGHT; i++) { for (int j = 0; j < CHAR_WIDTH; j++) { if (myImage.getRGB(j + c * CHAR_WIDTH, i) == 0xFF000000) { g.fillRect(x + j, y + i - CHAR_HEIGHT + CHAR_DESCENT, 1, 1); } } } }