Hide text shaper if it's not available.

This commit is contained in:
Martín Lucas Golini
2024-07-02 23:49:41 -03:00
parent fa169cf7e5
commit 4cf4ab65eb

View File

@@ -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<std::string> 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(),