[Android][freetype] Change streamingParsingEnabled to true

Add noCompress config to build.gradle for all templates & tests project

Exists project, please add follow config

android {

// Other configs
// ...

// noCompress config
aaptOptions {
noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}

}
This commit is contained in:
halx99 2022-01-29 14:54:32 +08:00
parent 8dd0aef742
commit 6131b237b2
6 changed files with 20 additions and 4 deletions

View File

@ -41,11 +41,7 @@ NS_CC_BEGIN
FT_Library FontFreeType::_FTlibrary;
bool FontFreeType::_FTInitialized = false;
#if !defined(__ANDROID__)
bool FontFreeType::_streamParsingEnabled = true;
#else
bool FontFreeType::_streamParsingEnabled = false;
#endif
bool FontFreeType::_doNativeBytecodeHinting = true;
const int FontFreeType::DistanceMapSpread = 6;

View File

@ -83,6 +83,10 @@ android {
renderscriptDebuggable true
}
}
aaptOptions {
noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}
}
android.applicationVariants.all { variant ->

View File

@ -84,6 +84,10 @@ android {
renderscriptDebuggable true
}
}
aaptOptions {
noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}
}
android.applicationVariants.all { variant ->

View File

@ -84,6 +84,10 @@ android {
renderscriptDebuggable true
}
}
aaptOptions {
noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}
}
android.applicationVariants.all { variant ->

View File

@ -85,6 +85,10 @@ android {
renderscriptDebuggable true
}
}
aaptOptions {
noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}
}
android.applicationVariants.all { variant ->

View File

@ -84,6 +84,10 @@ android {
renderscriptDebuggable true
}
}
aaptOptions {
noCompress 'mp3','ogg','wav','mp4','ttf','ttc'
}
}
android.applicationVariants.all { variant ->