mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-31 08:33:40 +00:00
(CoreText) Fix Y coordinate draw offset
This commit is contained in:
parent
64372ed4b1
commit
5eed4fd897
@ -114,7 +114,7 @@ static bool font_renderer_create_atlas(CTFontRef face, font_renderer_t *handle)
|
||||
origin_y = ceil(bounds[i].origin.y);
|
||||
|
||||
glyph->draw_offset_x = 0;
|
||||
glyph->draw_offset_y = -1 * (ascent - descent);
|
||||
glyph->draw_offset_y = -ascent;
|
||||
glyph->width = ceil(bounds[i].size.width);
|
||||
glyph->height = ceil(bounds[i].size.height);
|
||||
glyph->advance_x = ceil(advances[i].width);
|
||||
|
Loading…
x
Reference in New Issue
Block a user