Add TODO to update NN offsets to allow nulls.

This commit is contained in:
Garret Rieger 2021-08-18 15:50:49 -07:00 committed by Behdad Esfahbod
parent dc31920bbe
commit 280366ba6a
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,8 @@ struct CPALV1Tail
} }
protected: 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<UnsizedArrayOf<HBUINT32>> NNOffset32To<UnsizedArrayOf<HBUINT32>>
paletteFlagsZ; /* Offset from the beginning of CPAL table to paletteFlagsZ; /* Offset from the beginning of CPAL table to
* the Palette Type Array. Set to 0 if no array * the Palette Type Array. Set to 0 if no array