Lines Matching refs:plan
275 hb_subset_plan_t *plan) in create()
280 drop_hints = plan->drop_hints; in create()
281 desubroutinize = plan->desubroutinize; in create()
297 flattener(acc, plan); in create()
306 cff2_subr_subsetter_t subr_subsetter (acc, plan); in create()
361 if (unlikely (!hb_plan_subset_cff_fdselect (plan, in create()
394 …2CharStrings::calculate_serialized_size (offsets.charStringsInfo.offSize, plan->num_output_glyphs … in create()
410 if (!plan->desubroutinize && has_localsubrs) in create()
442 static inline bool _write_cff2 (const cff2_subset_plan &plan, in _write_cff2() argument
462 cff2->topDictSize = plan.offsets.topDictInfo.size; in _write_cff2()
465 if (unlikely (!dict.serialize (&c, acc.topDict, topSzr, plan.offsets))) in _write_cff2()
474 assert (cff2->topDict + plan.offsets.topDictInfo.size == (unsigned) (c.head - c.start)); in _write_cff2()
477 …if (unlikely (!dest->serialize (&c, plan.offsets.globalSubrsInfo.offSize, plan.subset_globalsubrs)… in _write_cff2()
487 assert (plan.offsets.varStoreOffset == (unsigned) (c.head - c.start)); in _write_cff2()
499 assert (plan.offsets.FDSelectInfo.offset == (unsigned) (c.head - c.start)); in _write_cff2()
502 plan.subset_fdselect_format, plan.offsets.FDSelectInfo.size, in _write_cff2()
503 plan.subset_fdselect_ranges))) in _write_cff2()
512 assert (plan.offsets.FDArrayInfo.offset == (unsigned) (c.head - c.start)); in _write_cff2()
516 if (unlikely (!fda->serialize (&c, plan.offsets.FDArrayInfo.offSize, in _write_cff2()
517 acc.fontDicts, plan.subset_fdcount, plan.fdmap, in _write_cff2()
518 fontSzr, plan.privateDictInfos))) in _write_cff2()
527 assert (plan.offsets.charStringsInfo.offset == (unsigned) (c.head - c.start)); in _write_cff2()
530 … if (unlikely (!cs->serialize (&c, plan.offsets.charStringsInfo.offSize, plan.subset_charstrings))) in _write_cff2()
538 assert (plan.offsets.privateDictsOffset == (unsigned) (c.head - c.start)); in _write_cff2()
541 if (plan.fdmap.has (i)) in _write_cff2()
545 unsigned int priv_size = plan.privateDictInfos[plan.fdmap[i]].size; in _write_cff2()
547 cff_private_dict_op_serializer_t privSzr (plan.desubroutinize, plan.drop_hints); in _write_cff2()
549 unsigned int subroffset = (plan.offsets.localSubrsInfos[i].size > 0) ? priv_size : 0; in _write_cff2()
556 if (plan.offsets.localSubrsInfos[i].size > 0) in _write_cff2()
560 …if (unlikely (!dest->serialize (&c, plan.offsets.localSubrsInfos[i].offSize, plan.subset_localsubr… in _write_cff2()
578 hb_subset_plan_t *plan, in _hb_subset_cff2() argument
583 if (unlikely (!cff2_plan.create (acc, plan))) in _hb_subset_cff2()
592 if (unlikely (!_write_cff2 (cff2_plan, acc, plan->num_output_glyphs (), in _hb_subset_cff2()
614 hb_subset_cff2 (hb_subset_plan_t *plan, in hb_subset_cff2() argument
617 hb_blob_t *cff2_blob = hb_sanitize_context_t().reference_table<CFF::cff2> (plan->source); in hb_subset_cff2()
621 acc.init(plan->source); in hb_subset_cff2()
623 _hb_subset_cff2 (acc, data, plan, prime); in hb_subset_cff2()