Merge pull request #2048 from lakkatv/stb

Make stb font_size similar to our other font renderers. Fixes #2047
This commit is contained in:
Twinaphex 2015-08-18 21:20:29 +02:00
commit 7e6be49cd6

View File

@ -137,6 +137,9 @@ static void *font_renderer_stb_init(const char *font_path, float font_size)
stbtt_fontinfo info;
stb_font_renderer_t *self = (stb_font_renderer_t*) calloc(1, sizeof(*self));
/* See https://github.com/nothings/stb/blob/master/stb_truetype.h#L539 */
font_size = STBTT_POINT_SIZE(font_size);
/* prevent warnings */
(void)rect_width_compare;