diff options
author | Dominik Röttsches <drott@chromium.org> | 2022-09-05 15:49:27 +0200 |
---|---|---|
committer | Dominik Röttsches <drott@chromium.org> | 2022-09-05 15:52:58 +0200 |
commit | 91a7fae777fb0ce1e53411cffa1cd310feaa9d00 (patch) | |
tree | a0ff8f23478b84017d8de1b21fe396ccdeeb8add | |
parent | 6d62076ae5d000612202aeae99c71ce27fdb2fb1 (diff) | |
download | freetype2-91a7fae777fb0ce1e53411cffa1cd310feaa9d00.tar.gz |
[sfnt] Handle variable `COLR` v1 fonts without delta set index map
Fixes #1178.
* src/sfnt/ttcolr.c (get_deltas_for_var_index_base): Set outer index to
0 and inner index to the delta index when retrieving deltas if the
`COLR` table has no delta set index map.
-rw-r--r-- | src/sfnt/ttcolr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c index ad0f1278a..b43216181 100644 --- a/src/sfnt/ttcolr.c +++ b/src/sfnt/ttcolr.c @@ -604,9 +604,8 @@ } else { - /* TODO: Direct lookup case not implemented or tested yet. */ - FT_ASSERT( 0 ); - return 0; + outer_index = 0; + inner_index = loop_var_index; } deltas[i] = mm->get_item_delta( FT_FACE( face ), &colr->var_store, |