From 95da20190a485a7824351c97c023074684dbf106 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 17 Jul 2015 02:24:23 +0200 Subject: [PATCH] Take out stb_truetype hack --- gfx/drivers_context/androidegl_ctx.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gfx/drivers_context/androidegl_ctx.c b/gfx/drivers_context/androidegl_ctx.c index abd4907451..a313fc5b91 100644 --- a/gfx/drivers_context/androidegl_ctx.c +++ b/gfx/drivers_context/androidegl_ctx.c @@ -451,18 +451,6 @@ static bool android_gfx_ctx_get_metrics(void *data, if (density[0] == '\0') return false; dpi = atoi(density); - -#ifdef HAVE_STB_FONT -#ifdef ANDROID - /* stb_truetype.h has a bug on Android - * where it screws up all font glyphs - * if DPI is over 500. So clamp against - * 500 for now until we have properly - * fixed the bug in stb_truetype.h */ - if (dpi > 500) - dpi = 500; -#endif -#endif *value = (float)dpi; break; case DISPLAY_METRIC_NONE: