mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Merge pull request #2048 from lakkatv/stb
Make stb font_size similar to our other font renderers. Fixes #2047
This commit is contained in:
commit
7e6be49cd6
@ -137,6 +137,9 @@ static void *font_renderer_stb_init(const char *font_path, float font_size)
|
|||||||
stbtt_fontinfo info;
|
stbtt_fontinfo info;
|
||||||
stb_font_renderer_t *self = (stb_font_renderer_t*) calloc(1, sizeof(*self));
|
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 */
|
/* prevent warnings */
|
||||||
(void)rect_width_compare;
|
(void)rect_width_compare;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user