diff --git a/projects/macos/ecode/cross.build.app.sh b/projects/macos/ecode/cross.build.app.sh index a93264e71..50162e39e 100755 --- a/projects/macos/ecode/cross.build.app.sh +++ b/projects/macos/ecode/cross.build.app.sh @@ -22,7 +22,7 @@ done RESOURCES_PATH="ecode.app/Contents/Resources" -premake5 --file=../../../premake5.lua --use-frameworks gmake || exit +premake5 --file=../../../premake5.lua --disable-static-build --with-text-shaper --use-frameworks gmake || exit make -C ../../../make/macosx/ -j$(sysctl -n hw.ncpu) -e verbose=true -e config=release_x86_64 ecode || exit rm -rf ./ecode.app diff --git a/src/eepp/graphics/text.cpp b/src/eepp/graphics/text.cpp index 20141fffe..21be0f4ae 100644 --- a/src/eepp/graphics/text.cpp +++ b/src/eepp/graphics/text.cpp @@ -84,7 +84,6 @@ shapeAndRun( const String& string, FontTrueType* font, Uint32 characterSize, Uin hb_buffer_destroy( hbBuffer ); return completeRun; } -#endif // New helper function to identify scripts where our custom kerning is safe to apply. static inline bool isSimpleScript( hb_script_t script ) { @@ -93,6 +92,8 @@ static inline bool isSimpleScript( hb_script_t script ) { script == HB_SCRIPT_INVALID; } +#endif + static inline bool canSkipShaping( Uint32 textDrawHints ) { return Text::TextShaperOptimizations && ( textDrawHints & TextHints::AllAscii ) != 0; }