[minor] Rewrite set operation in OS/2 subsetting
This patch could be nicer: https://github.com/harfbuzz/harfbuzz/pull/2572/files Just tiny touchup now.
This commit is contained in:
parent
cdb9197b41
commit
bbbea3dbd8
|
@ -183,8 +183,7 @@ struct OS2
|
||||||
cmap.collect_mapping (&unicodes, &unicode_glyphid_map);
|
cmap.collect_mapping (&unicodes, &unicode_glyphid_map);
|
||||||
cmap.fini ();
|
cmap.fini ();
|
||||||
|
|
||||||
if (c->plan->unicodes->is_empty ()) unicodes.clear ();
|
hb_set_set (&unicodes, c->plan->unicodes);
|
||||||
else hb_set_set (&unicodes, c->plan->unicodes);
|
|
||||||
|
|
||||||
+ unicode_glyphid_map.iter ()
|
+ unicode_glyphid_map.iter ()
|
||||||
| hb_filter (c->plan->glyphs_requested, hb_second)
|
| hb_filter (c->plan->glyphs_requested, hb_second)
|
||||||
|
|
Loading…
Reference in New Issue