From 4cf4ab65eb22c9f76b9c862ae1b6469ffeb9b6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Tue, 2 Jul 2024 23:49:41 -0300 Subject: [PATCH] Hide text shaper if it's not available. --- src/tools/ecode/ecode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index 2a65bdec5..430cedce9 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -4060,9 +4060,10 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) { "Try to set the default language the editor will be loaded. The language must be supported " "in order to this option do something.", { "language" }, "" ); +#ifdef EE_TEXT_SHAPER_ENABLED args::Flag textShaper( parser, "text-shaper", "Enables text-shaping capabilities", { "text-shaper" } ); - +#endif std::vector args; try { args = Sys::parseArguments( argc, argv ); @@ -4120,8 +4121,10 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) { return EXIT_SUCCESS; } +#ifdef EE_TEXT_SHAPER_ENABLED if ( textShaper.Get() ) Text::TextShaperEnabled = true; +#endif appInstance = eeNew( App, ( jobs, args ) ); appInstance->init( logLevel.Get(), folder ? folder.Get() : fileOrFolderPos.Get(),