diff --git a/Makefile.emscripten b/Makefile.emscripten index ffb1f9e9fc..c935759ab1 100644 --- a/Makefile.emscripten +++ b/Makefile.emscripten @@ -7,7 +7,7 @@ PTHREAD = 0 OS = Emscripten OBJ := DEFINES := -DRARCH_INTERNAL -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD) -DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN +DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN -DHAVE_STB_FONT HAVE_OVERLAY = 1 HAVE_CC_RESAMPLER = 1 @@ -25,6 +25,7 @@ HAVE_SHADERPIPELINE = 1 HAVE_STATIC_VIDEO_FILTERS = 1 HAVE_STATIC_AUDIO_FILTERS = 1 MEMORY = 536870912 +HAVE_STB_FONT = 1 PRECISE_F32 = 1 diff --git a/gfx/font_driver.c b/gfx/font_driver.c index 42303d211c..07ce2dd93c 100644 --- a/gfx/font_driver.c +++ b/gfx/font_driver.c @@ -34,7 +34,7 @@ static const font_renderer_driver_t *font_backends[] = { &coretext_font_renderer, #endif #ifdef HAVE_STB_FONT -#if defined(VITA) || defined(WIIU) || defined(ANDROID) || defined(_WIN32) && !defined(_XBOX) && !defined(_MSC_VER) || (defined(_WIN32) && !defined(_XBOX) && defined(_MSC_VER) && _MSC_VER > 1400) || defined(__CELLOS_LV2__) || defined(HAVE_LIBNX) +#if defined(VITA) || defined(WIIU) || defined(ANDROID) || defined(_WIN32) && !defined(_XBOX) && !defined(_MSC_VER) || (defined(_WIN32) && !defined(_XBOX) && defined(_MSC_VER) && _MSC_VER > 1400) || defined(__CELLOS_LV2__) || defined(HAVE_LIBNX) || defined (HAVE_EMSCRIPTEN) &stb_unicode_font_renderer, #else &stb_font_renderer,