/*
- * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine. Copyright ©2012-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
final eu.svjatoslav.sixth.e3d.renderer.raster.Color textColor) {
final Texture texture = new Texture(text.length()
- * TextCanvas.FONT_CHAR_WIDTH, TextCanvas.FONT_CHAR_HEIGHT,
+ * TextCanvas.FONT_CHAR_WIDTH_PIXELS, TextCanvas.FONT_CHAR_HEIGHT_PIXELS,
maxUpscaleFactor);
// texture.graphics.setColor(Color.BLUE);
for (int c = 0; c < text.length(); c++)
texture.graphics.drawChars(new char[]{text.charAt(c),}, 0, 1,
- (c * TextCanvas.FONT_CHAR_WIDTH) - 0,
- (0 * TextCanvas.FONT_CHAR_HEIGHT) + 11);
+ (c * TextCanvas.FONT_CHAR_WIDTH_PIXELS) - 0,
+ (0 * TextCanvas.FONT_CHAR_HEIGHT_PIXELS) + 11);
return texture;
}