mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-05 05:25:05 +00:00
[instancer] bug fix for COLRv1, add missing mapping to VarIdx::NO_VARIATION
This commit is contained in:
parent
b74a7ecc93
commit
7975c9cabd
9 changed files with 15 additions and 4 deletions
|
@ -527,11 +527,20 @@ _remap_colrv1_delta_set_index_indices (const OT::DeltaSetIndexMap &index_map,
|
|||
for (unsigned delta_set_idx : delta_set_idxes)
|
||||
{
|
||||
unsigned var_idx = index_map.map (delta_set_idx);
|
||||
hb_pair_t<unsigned, int> *new_varidx_delta;
|
||||
if (!variation_idx_delta_map.has (var_idx, &new_varidx_delta)) continue;
|
||||
unsigned new_varidx = HB_OT_LAYOUT_NO_VARIATIONS_INDEX;
|
||||
int delta = 0;
|
||||
|
||||
if (var_idx != HB_OT_LAYOUT_NO_VARIATIONS_INDEX)
|
||||
{
|
||||
hb_pair_t<unsigned, int> *new_varidx_delta;
|
||||
if (!variation_idx_delta_map.has (var_idx, &new_varidx_delta)) continue;
|
||||
|
||||
new_deltaset_idx_varidx_map.set (new_delta_set_idx, hb_first (*new_varidx_delta));
|
||||
delta_set_idx_delta_map.set (delta_set_idx, hb_pair_t<unsigned, int> (new_delta_set_idx, hb_second (*new_varidx_delta)));
|
||||
new_varidx = hb_first (*new_varidx_delta);
|
||||
delta = hb_second (*new_varidx_delta);
|
||||
}
|
||||
|
||||
new_deltaset_idx_varidx_map.set (new_delta_set_idx, new_varidx);
|
||||
delta_set_idx_delta_map.set (delta_set_idx, hb_pair_t<unsigned, int> (new_delta_set_idx, delta));
|
||||
new_delta_set_idx++;
|
||||
}
|
||||
variation_idx_delta_map = std::move (delta_set_idx_delta_map);
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
test/subset/data/fonts/KalniaGlaze.ttf
Normal file
BIN
test/subset/data/fonts/KalniaGlaze.ttf
Normal file
Binary file not shown.
|
@ -1,10 +1,12 @@
|
|||
FONTS:
|
||||
Foldit.ttf
|
||||
KalniaGlaze.ttf
|
||||
|
||||
PROFILES:
|
||||
default.txt
|
||||
|
||||
SUBSETS:
|
||||
A
|
||||
*
|
||||
|
||||
INSTANCES:
|
||||
|
|
Loading…
Add table
Reference in a new issue