From 3744b3cf2b629947c836ad64bc4b9af8a7c0f4de Mon Sep 17 00:00:00 2001 From: Wayward Heart <91356680+WaywardHeart@users.noreply.github.com> Date: Tue, 24 Oct 2023 23:56:18 -0500 Subject: [PATCH] Use the first version of the font we find --- src/display/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/font.cpp b/src/display/font.cpp index 3b4befd6..9de8d0d7 100644 --- a/src/display/font.cpp +++ b/src/display/font.cpp @@ -158,9 +158,9 @@ void SharedFontState::initFontSetCB(SDL_RWops &ops, FontSet &set = p->sets[family]; - if (style == "Regular") + if (style == "Regular" && set.regular.empty()) set.regular = filename; - else + else if (style != "Regular" && set.other.empty()) set.other = filename; }