Graphics2D gr2 = image.createGraphics();
gr2.setFont(font);
- Cell cellColor = new Cell();
- cellColor.setTo(cell);
+ Cell cellColor = new Cell(cell);
// Check for reverse
if (cell.isReverse()) {
gr2.dispose();
// We need a new key that will not be mutated by invertCell().
- Cell key = new Cell();
- key.setTo(cell);
+ Cell key = new Cell(cell);
if (cell.isBlink() && !blinkVisible) {
glyphCacheBlink.put(key, image);
} else {
glyphCache.put(key, image);
}
+ /*
+ System.err.println("cellWidth " + cellWidth +
+ " cellHeight " + cellHeight + " image " + image);
+ */
+
return image;
}
textHeight = fontTextHeight + textAdjustHeight;
textWidth = fontTextWidth + textAdjustWidth;
+ /*
+ System.err.println("font " + font);
+ System.err.println("fontTextWidth " + fontTextWidth);
+ System.err.println("fontTextHeight " + fontTextHeight);
+ System.err.println("textWidth " + textWidth);
+ System.err.println("textHeight " + textHeight);
+ */
gotFontDimensions = true;
}
* @param fontSize the size of these fonts in pixels
*/
private GlyphMaker(final int fontSize) {
+ assert (fontSize > 3);
makerMono = new GlyphMakerFont(MONO, fontSize);
// makerCJKhk = new GlyphMakerFont(CJKhk, fontSize);
// makerCJKkr = new GlyphMakerFont(CJKkr, fontSize);