• Home
  • Raw
  • Download

Lines Matching refs:plan

268 	      hb_subset_plan_t *plan)  in create()
273 drop_hints = plan->drop_hints; in create()
274 desubroutinize = plan->desubroutinize; in create()
290 flattener(acc, plan->glyphs, plan->drop_hints); in create()
300 if (!subr_subsetter.subset (acc, plan->glyphs, plan->drop_hints)) in create()
304 if (!subr_subsetter.encode_charstrings (acc, plan->glyphs, subset_charstrings)) in create()
355 if (unlikely (!hb_plan_subset_cff_fdselect (plan->glyphs, in create()
388 …2CharStrings::calculate_serialized_size (offsets.charStringsInfo.offSize, plan->glyphs.len, dataSi… in create()
404 if (!plan->desubroutinize && has_localsubrs) in create()
437 static inline bool _write_cff2 (const cff2_subset_plan &plan, in _write_cff2() argument
457 cff2->topDictSize.set (plan.offsets.topDictInfo.size); in _write_cff2()
460 if (unlikely (!dict.serialize (&c, acc.topDict, topSzr, plan.offsets))) in _write_cff2()
469 assert (cff2->topDict + plan.offsets.topDictInfo.size == c.head - c.start); in _write_cff2()
472 …if (unlikely (!dest->serialize (&c, plan.offsets.globalSubrsInfo.offSize, plan.subset_globalsubrs)… in _write_cff2()
482 assert (plan.offsets.varStoreOffset == c.head - c.start); in _write_cff2()
494 assert (plan.offsets.FDSelectInfo.offset == c.head - c.start); in _write_cff2()
497 plan.subset_fdselect_format, plan.offsets.FDSelectInfo.size, in _write_cff2()
498 plan.subset_fdselect_ranges))) in _write_cff2()
507 assert (plan.offsets.FDArrayInfo.offset == c.head - c.start); in _write_cff2()
511 if (unlikely (!fda->serialize (&c, plan.offsets.FDArrayInfo.offSize, in _write_cff2()
512 acc.fontDicts, plan.subset_fdcount, plan.fdmap, in _write_cff2()
513 fontSzr, plan.privateDictInfos))) in _write_cff2()
522 assert (plan.offsets.charStringsInfo.offset == c.head - c.start); in _write_cff2()
525 … if (unlikely (!cs->serialize (&c, plan.offsets.charStringsInfo.offSize, plan.subset_charstrings))) in _write_cff2()
533 assert (plan.offsets.privateDictsOffset == c.head - c.start); in _write_cff2()
536 if (plan.fdmap.includes (i)) in _write_cff2()
540 unsigned int priv_size = plan.privateDictInfos[plan.fdmap[i]].size; in _write_cff2()
542 CFFPrivateDict_OpSerializer privSzr (plan.desubroutinize, plan.drop_hints); in _write_cff2()
544 unsigned int subroffset = (plan.offsets.localSubrsInfos[i].size > 0)? priv_size: 0; in _write_cff2()
551 if (plan.offsets.localSubrsInfos[i].size > 0) in _write_cff2()
555 …if (unlikely (!dest->serialize (&c, plan.offsets.localSubrsInfos[i].offSize, plan.subset_localsubr… in _write_cff2()
573 hb_subset_plan_t *plan, in _hb_subset_cff2() argument
578 if (unlikely (!cff2_plan.create (acc, plan))) in _hb_subset_cff2()
587 if (unlikely (!_write_cff2 (cff2_plan, acc, plan->glyphs, in _hb_subset_cff2()
609 hb_subset_cff2 (hb_subset_plan_t *plan, in hb_subset_cff2() argument
612 hb_blob_t *cff2_blob = hb_sanitize_context_t().reference_table<CFF::cff2> (plan->source); in hb_subset_cff2()
616 acc.init(plan->source); in hb_subset_cff2()
618 _hb_subset_cff2 (acc, data, plan, prime); in hb_subset_cff2()