mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-26 21:40:44 +00:00
Fix glyph advance calculation in CoreText's FT backend
This commit is contained in:
parent
bedacf6515
commit
6a048b60cf
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user