Make stb font_size similar to our other font renderers. Fixes #2047

This commit is contained in:
Jean-André Santoni 2015-08-18 21:04:06 +02:00
parent 6b1a9f0852
commit ecc49c84a8

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;