From df44f9344616e9d6e7009fcfedb6620087c1ff22 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 14 Dec 2022 15:57:48 +0100 Subject: Add lineHeightRatio to let text decide the line spacing --- src/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index 722eb1b..02b50f2 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -185,7 +185,7 @@ bool UI::radioButton(sf::RenderWindow *win, Graphics::TextureFont font, } win->draw(radio); - Graphics::Text textGraph {font, text, size.x - 30, size.y}; + Graphics::Text textGraph {font, text, 1.4, size.x - 30, size.y}; textGraph.setPosition(sf::Vector2f(pos) + sf::Vector2f{30, size.y/2}); win->draw(textGraph); -- cgit v1.2.3