mirror of https://github.com/nothings/stb.git
Compare commits
3 Commits
f53973e245
...
cc335c4568
Author | SHA1 | Date |
---|---|---|
Scr3amer | cc335c4568 | |
Scr3amer | 722662eeda | |
Scr3amer | 638236d271 |
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue