summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-05 00:05:49 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-05 00:05:49 +0100
commita0365c140a932895805f3c475a5bb3e02f5df4ad (patch)
tree2f5e4619e929f484b69ba6d41d32a87615321794 /main
parent5efa25496480aa521f4803821e215bfc9a24149a (diff)
parentecec415988de5b016c70512bbb6a7cfc04ccd0a2 (diff)
Merge pull request #68995 from bruvzg/sys_font_for_text
Use system fonts as fallback.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 2d0843a331..c9a745cf56 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -533,6 +533,10 @@ Error Main::test_setup() {
void Main::test_cleanup() {
ERR_FAIL_COND(!_start_success);
+ for (int i = 0; i < TextServerManager::get_singleton()->get_interface_count(); i++) {
+ TextServerManager::get_singleton()->get_interface(i)->cleanup();
+ }
+
EngineDebugger::deinitialize();
ResourceLoader::remove_custom_loaders();
@@ -3300,6 +3304,10 @@ void Main::cleanup(bool p_force) {
ERR_FAIL_COND(!_start_success);
}
+ for (int i = 0; i < TextServerManager::get_singleton()->get_interface_count(); i++) {
+ TextServerManager::get_singleton()->get_interface(i)->cleanup();
+ }
+
if (movie_writer) {
movie_writer->end();
}