Added support for non-colored emoji fonts.

This commit is contained in:
Martín Lucas Golini
2022-03-03 21:43:36 -03:00
parent 388a66e570
commit e26d9cceff
14 changed files with 178 additions and 65 deletions

View File

@@ -2068,6 +2068,8 @@ void App::init( const std::string& file, const Float& pidelDensity ) {
if ( mFontMono )
mFontMono->setBoldAdvanceSameAsRegular( true );
loadFont( "NotoEmoji-Regular", "assets/fonts/NotoEmoji-Regular.ttf" );
#if EE_PLATFORM != EE_PLATFORM_EMSCRIPTEN
loadFont( "NotoColorEmoji", "assets/fonts/NotoColorEmoji.ttf" );
#endif