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/textureFont.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/graphics/textureFont.h') diff --git a/src/graphics/textureFont.h b/src/graphics/textureFont.h index f3f194a..224d300 100644 --- a/src/graphics/textureFont.h +++ b/src/graphics/textureFont.h @@ -22,7 +22,12 @@ namespace Graphics { public: TextureFont(const sf::Texture &texture, Descr desc); const sf::Glyph &getGlyph(char ch) const; - const sf::Texture *getTexture(unsigned int _); + + // Doesn't control sizes or anything, they are like this to be + // compatible with sf::Font somehow. + const sf::Texture *getTexture(...); + float getLineSpacing(...); + float getKerning(...); }; } -- cgit v1.2.3