1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:07:45 +00:00

LibGfx: Correct the type of Lookup.subtable_offsets

According to the spec (and the variable name), it should be an array of
offsets, not u16s. Noticed while watching Andreas' most recent video.
This commit is contained in:
Matt Purnell 2023-03-18 14:59:06 -05:00 committed by Linus Groh
parent 27d9ed0224
commit bc23b07570

View file

@ -559,7 +559,7 @@ struct Lookup {
BigEndian<u16> lookup_type; BigEndian<u16> lookup_type;
BigEndian<u16> lookup_flag; BigEndian<u16> lookup_flag;
BigEndian<u16> subtable_count; BigEndian<u16> subtable_count;
BigEndian<u16> subtable_offsets[]; Offset16 subtable_offsets[];
}; };
// https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#lookup-list-table // https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#lookup-list-table