Loading a glyph twice returns a different CBox
Hi. For this font, https://www.sentyfont.com/index_htm_files/HanyiSentySpringTrip.ttf, if I load a glyph and get the CBox twice, the result is different the second time?
The following code
FT_Face face = NULL;
FT_New_Face(library, "HanyiSentySpringTrip.ttf", 0, &face);
FT_Glyph glyph;
FT_BBox bbox;
FT_Set_Pixel_Sizes(face, 0, 128);
for (size_t i = 0; i < 2; i++) {
FT_Load_Glyph(face, 3651, FT_LOAD_DEFAULT);
FT_Get_Glyph(face->glyph, &glyph);
FT_Glyph_Get_CBox(glyph, FT_GLYPH_BBOX_PIXELS, &bbox);
printf("yMax %d\n", bbox.yMax);
}
outputs
yMax 274
yMax 104
Is this a FreeType bug? Is the font broken? Is there something wrong with the code I've pasted? Thanks.