summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Röttsches <drott@chromium.org>2021-08-19 16:56:22 +0300
committerWerner Lemberg <wl@gnu.org>2021-08-19 21:35:08 +0000
commit633fe0876486de84b421fef432b63f2e2e15d83e (patch)
tree28f8d5f61716ac25a2bfb7cd17f512d8be4e9273
parent02ba0fc81e57a3934c6c1842ade6def0facf82d8 (diff)
downloadfreetype2-633fe0876486de84b421fef432b63f2e2e15d83e.tar.gz
[sfnt] Fix format expectation for `COLR` v1 ClipList
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Change ClipList format expectation to 1 instead of 0 to make it compliant with the latest spec.
-rw-r--r--src/sfnt/ttcolr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c
index 68807127f..8b31b20cf 100644
--- a/src/sfnt/ttcolr.c
+++ b/src/sfnt/ttcolr.c
@@ -843,7 +843,7 @@
/* Format byte used here to be able to upgrade ClipList for >16bit */
/* glyph ids; for now we can expect it to be 0. */
- if ( !( clip_list_format == 0 ) )
+ if ( !( clip_list_format == 1 ) )
return 0;
num_clip_boxes = FT_NEXT_ULONG( p );