X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FGlyphMaker.java;h=91bda6d7314059c0fbbe0bddfcb763688d8c378d;hb=bfa37f3b2ef87d39c15fad7d565c00cbabd92acf;hp=08cbee8ca10a91d48900e182d6b1fd25d9946c39;hpb=b4570a63cef669dc85335a7f8d571a5eefdfc3c7;p=fanfix.git diff --git a/src/jexer/backend/GlyphMaker.java b/src/jexer/backend/GlyphMaker.java index 08cbee8..91bda6d 100644 --- a/src/jexer/backend/GlyphMaker.java +++ b/src/jexer/backend/GlyphMaker.java @@ -237,6 +237,11 @@ class GlyphMakerFont { glyphCache.put(key, image); } + /* + System.err.println("cellWidth " + cellWidth + + " cellHeight " + cellHeight + " image " + image); + */ + return image; } @@ -265,6 +270,13 @@ class GlyphMakerFont { 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; } @@ -345,6 +357,7 @@ public class GlyphMaker { * @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);