From ff332b14eae0ac122d7cfea90fb7d98e107dea92 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 11 Dec 2022 21:05:14 -0700 Subject: [PATCH] [COLR] Handle HB_OT_LAYOUT_NO_VARIATIONS_INDEX --- src/hb-ot-color-colr-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index e3a1e670a..6f3eeb122 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -941,7 +941,7 @@ struct ClipBox extents->width = u.format1.xMax - u.format1.xMin; extents->height = u.format1.yMin - u.format1.yMax; - if (u.format == 2 && coords) + if (u.format == 2 && coords && u.format2.varIdxBase != HB_OT_LAYOUT_NO_VARIATIONS_INDEX) { uint32_t varIdx = u.format2.varIdxBase; extents->x_bearing += _hb_roundf (varStore.get_delta (varIdx , coords));