X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Fraster%2Fshapes%2Fcomposite%2FForwardOrientedTextBlock.java;h=800c6bd54a99c21457d19005e1e9fb4830bfdc29;hb=2ba2ce636354885e669e9e3fbb97226025e5af45;hp=836e80b2983fffa39067949bdb4b644f3d560aa0;hpb=dcdff57f0bab42387b2e4e215778d9e8efc60221;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java index 836e80b..800c6bd 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/composite/ForwardOrientedTextBlock.java @@ -1,5 +1,5 @@ /* - * 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 @@ -28,7 +28,7 @@ public class ForwardOrientedTextBlock extends ForwardOrientedTexture { 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); @@ -40,8 +40,8 @@ public class ForwardOrientedTextBlock extends ForwardOrientedTexture { 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; }