Lines Matching refs:acc

402   void plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan)
404 const Encoding *encoding = acc.encoding;
427 code = acc.glyph_to_code (old_glyph);
443 hb_codepoint_t sid = acc.glyph_to_sid (old_glyph);
466 void plan_subset_charset (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan)
486 sid = acc.glyph_to_sid (old_glyph);
488 if (!acc.is_CID ())
515 bool collect_sids_in_dicts (const OT::cff1::accelerator_subset_t &acc)
521 unsigned int sid = acc.topDict.nameSIDs[i];
529 if (acc.fdArray != &Null (CFF1FDArray))
532 (void)sidmap.add (acc.fontDicts[i].fontName);
537 bool create (const OT::cff1::accelerator_subset_t &acc,
545 orig_fdcount = acc.fdCount;
561 subset_charset = gid_renum || !acc.is_predef_charset ();
562 subset_encoding = !acc.is_CID() && !acc.is_predef_encoding ();
567 topdict_mod.init (&acc.topDict);
568 bool need_to_add_enc = (subset_encoding && !acc.topDict.has_op (OpCode_Encoding));
569 bool need_to_add_set = (subset_charset && !acc.topDict.has_op (OpCode_charset));
580 if (acc.fdSelect != &Null (CFF1FDSelect))
584 *acc.fdSelect,
598 if (unlikely (!collect_sids_in_dicts (acc)))
603 if (subset_charset) plan_subset_charset (acc, plan);
612 flattener(acc, plan);
618 cff1_subr_subsetter_t subr_subsetter (acc, plan);
647 plan_subset_encoding (acc, plan);
650 if (!acc.is_CID ())
654 + hb_iter (acc.fontDicts)
656 { return fdmap.has (&_ - &acc.fontDicts[0]); } )
710 const OT::cff1::accelerator_subset_t &acc,
714 for (int i = (int)acc.privateDicts.length; --i >= 0 ;)
738 if (likely (pd->serialize (c, acc.privateDicts[i], privSzr, subrs_link)))
752 if (!acc.is_CID ())
770 if (acc.fdArray != &Null (CFF1FDArray))
787 if (acc.fdSelect != &Null (CFF1FDSelect))
790 if (likely (hb_serialize_cff_fdselect (c, num_glyphs, *acc.fdSelect, acc.fdCount,
857 if (likely (dest->serialize (c, *acc.stringIndex, plan.sidmap)))
877 if (unlikely (!(*acc.nameIndex).copy (c))) return false;
906 _hb_subset_cff1 (const OT::cff1::accelerator_subset_t &acc,
911 if (unlikely (!cff_plan.create (acc, c->plan)))
917 return _serialize_cff1 (c->serializer, cff_plan, acc, c->plan->num_output_glyphs ());
923 OT::cff1::accelerator_subset_t acc;
924 acc.init (c->plan->source);
925 bool result = likely (acc.is_valid ()) && _hb_subset_cff1 (acc, c);
926 acc.fini ();