summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorMatt Purnell <65473602+mpurnell1@users.noreply.github.com>2023-03-18 14:59:06 -0500
committerLinus Groh <mail@linusgroh.de>2023-03-19 00:32:01 +0000
commitbc23b075708d87dad1ad62928783af4893981d6f (patch)
treeba8d37a983bcc6765ac4aa48e81794ed86b030f5 /Userland
parent27d9ed0224d19e71917701e685c33f90a74e5694 (diff)
downloadserenity-bc23b075708d87dad1ad62928783af4893981d6f.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/Font/OpenType/Tables.h2
1 files changed, 1 insertions, 1 deletions
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<u16> lookup_type;
BigEndian<u16> lookup_flag;
BigEndian<u16> subtable_count;
- BigEndian<u16> subtable_offsets[];
+ Offset16 subtable_offsets[];
};
// https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#lookup-list-table