From bc23b075708d87dad1ad62928783af4893981d6f Mon Sep 17 00:00:00 2001 From: Matt Purnell <65473602+mpurnell1@users.noreply.github.com> Date: Sat, 18 Mar 2023 14:59:06 -0500 Subject: [PATCH] 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. --- Userland/Libraries/LibGfx/Font/OpenType/Tables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Font/OpenType/Tables.h b/Userland/Libraries/LibGfx/Font/OpenType/Tables.h index bd44387fc0..0e204fee06 100644 --- a/Userland/Libraries/LibGfx/Font/OpenType/Tables.h +++ b/Userland/Libraries/LibGfx/Font/OpenType/Tables.h @@ -559,7 +559,7 @@ struct Lookup { BigEndian lookup_type; BigEndian lookup_flag; BigEndian subtable_count; - BigEndian subtable_offsets[]; + Offset16 subtable_offsets[]; }; // https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#lookup-list-table