From 3a5d7a4b5495f3f2d67ef9831b353168db6808e3 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Tue, 7 Mar 2023 16:02:41 +0100 Subject: [TextServer] Make sure Freetype is enabled for ot-svg --- modules/text_server_adv/thorvg_svg_in_ot.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/text_server_adv/thorvg_svg_in_ot.h') diff --git a/modules/text_server_adv/thorvg_svg_in_ot.h b/modules/text_server_adv/thorvg_svg_in_ot.h index 4035a984b6..95ba29a20d 100644 --- a/modules/text_server_adv/thorvg_svg_in_ot.h +++ b/modules/text_server_adv/thorvg_svg_in_ot.h @@ -47,10 +47,11 @@ using namespace godot; #include "core/templates/hash_map.h" #include "core/typedefs.h" -#include "modules/modules_enabled.gen.h" // For svg. +#include "modules/modules_enabled.gen.h" // For svg, freetype. #endif #ifdef MODULE_SVG_ENABLED +#ifdef MODULE_FREETYPE_ENABLED #include #include @@ -81,6 +82,7 @@ FT_Error tvg_svg_in_ot_render(FT_GlyphSlot p_slot, FT_Pointer *p_state); SVG_RendererHooks *get_tvg_svg_in_ot_hooks(); +#endif // MODULE_FREETYPE_ENABLED #endif // MODULE_SVG_ENABLED #endif // THORVG_SVG_IN_OT_H -- cgit v1.2.3