From 280366ba6af14fbcacbc49e6aa1c12d83e531ad1 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 18 Aug 2021 15:50:49 -0700 Subject: [PATCH] Add TODO to update NN offsets to allow nulls. --- src/hb-ot-color-cpal-table.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-color-cpal-table.hh b/src/hb-ot-color-cpal-table.hh index 04e077252..a9deeba9a 100644 --- a/src/hb-ot-color-cpal-table.hh +++ b/src/hb-ot-color-cpal-table.hh @@ -124,6 +124,8 @@ struct CPALV1Tail } protected: + // TODO(garretrieger): these offsets can hold nulls so we should not be using non-null offsets + // here. Currently they are needed since UnsizedArrayOf doesn't define null_size NNOffset32To> paletteFlagsZ; /* Offset from the beginning of CPAL table to * the Palette Type Array. Set to 0 if no array