From 02fe1199884d1056a3282268a8c75b3f086bfc9d Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 13 Dec 2022 19:58:50 +0100 Subject: Sketch a proper font rendering infrastructure: - Kerning - LineSpacing - ... We should include that for a proper interaction with Graphics::Text and to be able to render beautiful UIs. Also, we need to discard spaces in newlines, break lines by word, and that kind of things... We'll see. --- src/graphics/text.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/graphics/text.cpp') diff --git a/src/graphics/text.cpp b/src/graphics/text.cpp index 43e8be1..7b135d6 100644 --- a/src/graphics/text.cpp +++ b/src/graphics/text.cpp @@ -5,6 +5,7 @@ using namespace Graphics; template <> void Text::arrange(TextureFont &font){ // TODO: this is really awful rendering but works a little bit + // Add getLineSpacing + getKerning and so on unsigned int filledX = 0; unsigned int row = 0; unsigned int col = 0; -- cgit v1.2.3