summaryrefslogtreecommitdiffstats
path: root/modules/text_server_fb/text_server_fb.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-01 12:03:20 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-01 13:22:29 +0300
commit366e2d893e14826c3669e14911efa745d690d074 (patch)
tree130932f5635567c7ad6f5e84cdeaebdf6a020e5f /modules/text_server_fb/text_server_fb.h
parent90dae713a1d3785b61607c98995c05238b574ac1 (diff)
downloadredot-engine-366e2d893e14826c3669e14911efa745d690d074.tar.gz
[TextServer] Add a build warning when building with external FreeType without Brotli support.
Diffstat (limited to 'modules/text_server_fb/text_server_fb.h')
-rw-r--r--modules/text_server_fb/text_server_fb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/text_server_fb/text_server_fb.h b/modules/text_server_fb/text_server_fb.h
index adb5cbb817..fef19d442b 100644
--- a/modules/text_server_fb/text_server_fb.h
+++ b/modules/text_server_fb/text_server_fb.h
@@ -98,6 +98,10 @@ using namespace godot;
#include FT_ADVANCES_H
#include FT_MULTIPLE_MASTERS_H
#include FT_BBOX_H
+#include FT_CONFIG_OPTIONS_H
+#if !defined(FT_CONFIG_OPTION_USE_BROTLI) && !defined(_MSC_VER)
+#warning FreeType is configured without Brotli support, built-in fonts will not be available.
+#endif
#endif
/*************************************************************************/