From cd8f7c02017e8b574639463587460d09f12b4477 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 5 Jun 2023 17:17:44 -0600 Subject: [PATCH] [subset/cff] Optimize fdselect --- src/hb-subset-cff-common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-subset-cff-common.cc b/src/hb-subset-cff-common.cc index 46ff35d14..d9d51a256 100644 --- a/src/hb-subset-cff-common.cc +++ b/src/hb-subset-cff-common.cc @@ -87,10 +87,10 @@ hb_plan_subset_cff_fdselect (const hb_subset_plan_t *plan, if (old_glyph >= last_range.second) last_range = src.get_fd_range (old_glyph); unsigned fd = last_range.first; - set.add (fd); if (fd != prev_fd) { + set.add (fd); num_ranges++; prev_fd = fd; fdselect_ranges.push (code_pair_t { fd, gid });