Logger adjusted for 1.7.

This commit is contained in:
Florian Nücke 2014-07-29 17:54:23 +02:00
parent 3a4efdffe2
commit 267a930932

View File

@ -65,8 +65,8 @@ public class FontParserUnifont implements IGlyphProvider {
final int expectedWidth = FontUtil.wcwidth(charCode);
final int glyphWidth = glyph.length / 16;
if (glyphWidth != expectedWidth) {
if (OpenComputers.log().isLoggable(Level.FINEST)) {
OpenComputers.log().finest(String.format("Size of glyph for code point U+%04X (%s) in Unifont (%d) does not match expected width (%d), ignoring.", charCode, String.valueOf((char) charCode), glyphWidth, expectedWidth));
if (OpenComputers.log().isDebugEnabled()) {
OpenComputers.log().debug("Size of glyph for code point U+%04X (%s) in Unifont (%d) does not match expected width (%d), ignoring.", charCode, String.valueOf((char) charCode), glyphWidth, expectedWidth);
}
return null;
}