summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-17 15:46:44 +0200
committerGitHub <noreply@github.com>2021-05-17 15:46:44 +0200
commit107651806f1b922f672ec1b87766b765202cbbd7 (patch)
tree290d095954459480ddaf84401163b80483cd49da /scene/resources/default_theme/SCsub
parent9cc17a8439d4909324da014a1d2e90cfaa9fb979 (diff)
parentd211c05111eed90baa7e70cb4e818fd328e97770 (diff)
Merge pull request #39603 from Calinou/default-theme-use-dynamicfont
Diffstat (limited to 'scene/resources/default_theme/SCsub')
-rw-r--r--scene/resources/default_theme/SCsub12
1 files changed, 12 insertions, 0 deletions
diff --git a/scene/resources/default_theme/SCsub b/scene/resources/default_theme/SCsub
index fc61250247..0fb6bb2c62 100644
--- a/scene/resources/default_theme/SCsub
+++ b/scene/resources/default_theme/SCsub
@@ -2,4 +2,16 @@
Import("env")
+import os
+import os.path
+from platform_methods import run_in_subprocess
+import default_theme_builders
+
env.add_source_files(env.scene_sources, "*.cpp")
+
+env.Depends("#scene/resources/default_theme/default_font.gen.h", "#thirdparty/fonts/OpenSans_SemiBold.ttf")
+env.CommandNoCache(
+ "#scene/resources/default_theme/default_font.gen.h",
+ "#thirdparty/fonts/OpenSans_SemiBold.ttf",
+ run_in_subprocess(default_theme_builders.make_fonts_header),
+)