Merge pull request #98862 from HuntJSparra/early-projsettings-registration

Register Engine, OS, ProjectSettings, and Time singletons in time for for `INITIZATION_LEVEL_CORE`
This commit is contained in:
Thaddeus Crews
2024-11-26 13:04:51 -06:00
5 changed files with 71 additions and 52 deletions

View File

@ -1528,7 +1528,8 @@ DWRITE_FONT_STRETCH OS_Windows::_stretch_to_dw(int p_stretch) const {
}
Vector<String> OS_Windows::get_system_font_path_for_text(const String &p_font_name, const String &p_text, const String &p_locale, const String &p_script, int p_weight, int p_stretch, bool p_italic) const {
if (!dwrite2_init) {
// This may be called before TextServerManager has been created, which would cause a crash downstream if we do not check here
if (!dwrite2_init || !TextServerManager::get_singleton()) {
return Vector<String>();
}