You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[TextServer] Fix ICU data loading and exporting with internationalization/locale/include_text_server_data setting.
This commit is contained in:
@@ -524,7 +524,11 @@ Error Main::test_setup() {
|
||||
}
|
||||
}
|
||||
if (text_driver_idx >= 0) {
|
||||
TextServerManager::get_singleton()->set_primary_interface(TextServerManager::get_singleton()->get_interface(text_driver_idx));
|
||||
Ref<TextServer> ts = TextServerManager::get_singleton()->get_interface(text_driver_idx);
|
||||
TextServerManager::get_singleton()->set_primary_interface(ts);
|
||||
if (ts->has_feature(TextServer::FEATURE_USE_SUPPORT_DATA)) {
|
||||
ts->load_support_data("res://" + ts->get_support_data_filename());
|
||||
}
|
||||
} else {
|
||||
ERR_FAIL_V_MSG(ERR_CANT_CREATE, "TextServer: Unable to create TextServer interface.");
|
||||
}
|
||||
@@ -2238,7 +2242,11 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
||||
}
|
||||
}
|
||||
if (text_driver_idx >= 0) {
|
||||
TextServerManager::get_singleton()->set_primary_interface(TextServerManager::get_singleton()->get_interface(text_driver_idx));
|
||||
Ref<TextServer> ts = TextServerManager::get_singleton()->get_interface(text_driver_idx);
|
||||
TextServerManager::get_singleton()->set_primary_interface(ts);
|
||||
if (ts->has_feature(TextServer::FEATURE_USE_SUPPORT_DATA)) {
|
||||
ts->load_support_data("res://" + ts->get_support_data_filename());
|
||||
}
|
||||
} else {
|
||||
ERR_FAIL_V_MSG(ERR_CANT_CREATE, "TextServer: Unable to create TextServer interface.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user