Fix glyph advance calculation in CoreText's FT backend

This commit is contained in:
Lubos Dolezel 2021-03-01 20:23:05 +01:00
parent bedacf6515
commit 6a048b60cf

View File

@ -80,7 +80,8 @@
for (i = 0; i < count; i++) {
FT_Load_Glyph(face, glyphs[i], FT_LOAD_DEFAULT);
advancements[i] = CGSizeMake(face->glyph->bitmap_left, 0);
advancements[i] = CGSizeMake(face->glyph->advance.x / (O2Float)(2 << 5),
face->glyph->advance.y / (O2Float)(2 << 5));
}
}