From 14ddeb8e445b934ce939c804214efb193ad3ec0b Mon Sep 17 00:00:00 2001 From: danboo Date: Mon, 15 Aug 2022 20:58:48 -0800 Subject: [PATCH] break out of font search loop after first match The documentation for the font_names property indicates: Array of font family names to search, first matching font found is used. --- scene/resources/font.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp index 619036d296e..880876baed4 100644 --- a/scene/resources/font.cpp +++ b/scene/resources/font.cpp @@ -2808,6 +2808,8 @@ void SystemFont::_update_base_font() { file->set_oversampling(oversampling); base_font = file; + + break; } if (base_font.is_valid()) {