mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
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.
This commit is contained in:
parent
d5d22ab035
commit
14ddeb8e44
@ -2808,6 +2808,8 @@ void SystemFont::_update_base_font() {
|
||||
file->set_oversampling(oversampling);
|
||||
|
||||
base_font = file;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (base_font.is_valid()) {
|
||||
|
Loading…
Reference in New Issue
Block a user