freetype/harfbuzz: correct Position struct layout

There's an undocumented private field in this struct which wasn't
replicated, meaning getGlyphPositions was returning garbage data.
This commit is contained in:
mlugg 2022-09-23 19:28:27 +01:00 committed by Stephen Gutekanst
parent fcb82345d4
commit 2af8d5025b

View file

@ -40,6 +40,7 @@ pub const Position = extern struct {
y_advance: i32, y_advance: i32,
x_offset: i32, x_offset: i32,
y_offset: i32, y_offset: i32,
_padding: u32, // private
}; };
pub const GlyphFlags = packed struct { pub const GlyphFlags = packed struct {