Compare commits

...

3 Commits

Author SHA1 Message Date
Scr3amer cc335c4568
Merge 722662eeda into 03f50e343d 2023-11-23 03:09:01 +08:00
Scr3amer 722662eeda
Merge branch 'nothings:master' into Add-missing-return-in-truetype 2023-04-09 00:53:18 -04:00
Scr3amer 638236d271
Missing a return in stbtt_GetGlyphBox 2022-10-08 22:45:15 -04:00
1 changed files with 1 additions and 1 deletions

View File

@ -1625,7 +1625,7 @@ static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, in
STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1)
{
if (info->cff.size) {
stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1);
return stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1);
} else {
int g = stbtt__GetGlyfOffset(info, glyph_index);
if (g < 0) return 0;