From bea675cde69c5250acf40dc195c14d793aec1e5d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 26 Jan 2023 14:07:25 -0700 Subject: [ttgxvar] Fix crash in COLRv1. This is a stopgap until issue #1202 is properly fixed. * src/truetype/ttxgvar.c (tt_var_get_item_delta): Check `normalizedcoords`. --- src/truetype/ttgxvar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index 02e809152..74499c17e 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -1009,6 +1009,9 @@ FT_ItemVarDelta returnValue; + if ( !face->blend->normalizedcoords ) + return 0; + /* OpenType 1.8.4+: No variation data for this item * as indices have special value 0xFFFF. */ if ( outerIndex == 0xFFFF && innerIndex == 0xFFFF ) -- cgit v1.2.1