From 6fbd76171b1f8f357524de20009380a93ca9bbf9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 3 Sep 2021 01:26:14 +0200 Subject: Add QM_FONT_SCALE environment variable to set font scale. Also add QM_SCALE to not have to rely on GDK_SCALE or xft.dpi --- src/BodyItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/BodyItem.cpp') diff --git a/src/BodyItem.cpp b/src/BodyItem.cpp index bf6e45d..8fd5362 100644 --- a/src/BodyItem.cpp +++ b/src/BodyItem.cpp @@ -72,7 +72,7 @@ namespace QuickMedia { void BodyItem::add_reaction(std::string text, void *userdata) { sf::String str = sf::String::fromUtf8(text.begin(), text.end()); Reaction reaction; - reaction.text = std::make_unique(std::move(str), false, std::floor(14 * get_ui_scale()), 0.0f); + reaction.text = std::make_unique(std::move(str), false, std::floor(14 * get_ui_scale() * get_font_scale()), 0.0f); reaction.userdata = userdata; reactions.push_back(std::move(reaction)); } -- cgit v1.2.3