summaryrefslogtreecommitdiff
path: root/src/graphics/text.cpp
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-12-13 19:58:50 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-12-14 15:57:07 +0100
commit02fe1199884d1056a3282268a8c75b3f086bfc9d (patch)
treedff312cbe6aa7131f3b442750f03e5ce4d7c416a /src/graphics/text.cpp
parente45e92e0ff294e6a1899b01b8cfdd8ab25d8dcdc (diff)
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.
Diffstat (limited to 'src/graphics/text.cpp')
-rw-r--r--src/graphics/text.cpp1
1 files changed, 1 insertions, 0 deletions
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<TextureFont>::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;