Skip to content

Commit

Permalink
[instancer] add a warning for CFF partial instancing
Browse files Browse the repository at this point in the history
It's not supported yet
  • Loading branch information
qxliu76 committed May 7, 2024
1 parent 847ead3 commit d58cb7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hb-subset-cff1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,9 @@ OT::cff1::accelerator_subset_t::serialize (hb_serialize_context_t *c,
bool
OT::cff1::accelerator_subset_t::subset (hb_subset_context_t *c) const
{
if (c->plan->normalized_coords && !c->plan->all_axes_pinned)
fprintf (stdout, "warning: CFF partial instancing is not supported.\n");

Check warning on line 990 in src/hb-subset-cff1.cc

View check run for this annotation

Codecov / codecov/patch

src/hb-subset-cff1.cc#L990

Added line #L990 was not covered by tests

cff1_subset_plan cff_plan;

if (unlikely (!cff_plan.create (*this, c->plan)))
Expand Down
3 changes: 3 additions & 0 deletions src/hb-subset-cff2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ OT::cff2::accelerator_subset_t::serialize (hb_serialize_context_t *c,
bool
OT::cff2::accelerator_subset_t::subset (hb_subset_context_t *c) const
{
if (c->plan->normalized_coords && !c->plan->all_axes_pinned)
fprintf (stdout, "warning: CFF partial instancing is not supported.\n");

Check warning on line 670 in src/hb-subset-cff2.cc

View check run for this annotation

Codecov / codecov/patch

src/hb-subset-cff2.cc#L670

Added line #L670 was not covered by tests

cff2_subset_plan cff2_plan;

if (unlikely (!cff2_plan.create (*this, c->plan))) return false;
Expand Down

0 comments on commit d58cb7f

Please sign in to comment.