Lines Matching refs:acc

463 …unsigned int plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *pl…  in plan_subset_encoding()
465 const Encoding *encoding = acc.encoding; in plan_subset_encoding()
479 code = acc.glyph_to_code (orig_glyph); in plan_subset_encoding()
495 hb_codepoint_t sid = acc.glyph_to_sid (orig_glyph); in plan_subset_encoding()
524 …unsigned int plan_subset_charset (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *pla… in plan_subset_charset()
534 sid = acc.glyph_to_sid (orig_glyph); in plan_subset_charset()
536 if (!acc.is_CID ()) in plan_subset_charset()
567 bool collect_sids_in_dicts (const OT::cff1::accelerator_subset_t &acc) in collect_sids_in_dicts()
569 if (unlikely (!sidmap.reset (acc.stringIndex->count))) in collect_sids_in_dicts()
574 unsigned int sid = acc.topDict.nameSIDs[i]; in collect_sids_in_dicts()
582 if (acc.fdArray != &Null(CFF1FDArray)) in collect_sids_in_dicts()
585 (void)sidmap.add (acc.fontDicts[i].fontName); in collect_sids_in_dicts()
590 bool create (const OT::cff1::accelerator_subset_t &acc, in create()
598 orig_fdcount = acc.fdCount; in create()
612 subset_charset = gid_renum || !acc.is_predef_charset (); in create()
613 subset_encoding = !acc.is_CID() && !acc.is_predef_encoding (); in create()
620 final_size += acc.nameIndex->get_size (); in create()
625 topdict_mod.init (&acc.topDict); in create()
626 bool need_to_add_enc = (subset_encoding && !acc.topDict.has_op (OpCode_Encoding)); in create()
627 bool need_to_add_set = (subset_charset && !acc.topDict.has_op (OpCode_charset)); in create()
647 if (acc.fdSelect != &Null(CFF1FDSelect)) in create()
651 *acc.fdSelect, in create()
665 if (unlikely (!collect_sids_in_dicts (acc))) in create()
670 offsets.charsetInfo.size = plan_subset_charset (acc, plan); in create()
678 …offsets.stringIndexInfo.size = acc.stringIndex->calculate_serialized_size (offsets.stringIndexInfo… in create()
686 flattener(acc, plan->glyphs, plan->drop_hints); in create()
696 if (!subr_subsetter.subset (acc, plan->glyphs, plan->drop_hints)) in create()
700 if (!subr_subsetter.encode_charstrings (acc, plan->glyphs, subset_charstrings)) in create()
746 offsets.encodingOffset = acc.topDict.EncodingOffset; in create()
750 final_size += plan_subset_encoding (acc, plan); in create()
754 if (!subset_charset && acc.is_predef_charset ()) in create()
755 offsets.charsetInfo.offset = acc.topDict.CharsetOffset; in create()
761 if (acc.fdSelect != &Null(CFF1FDSelect)) in create()
768 if (acc.fdArray != &Null(CFF1FDArray)) { in create()
772 for (unsigned int i = 0; i < acc.fontDicts.len; i++) in create()
774 dictsSize += FontDict::calculate_serialized_size (acc.fontDicts[i], fontSzr); in create()
800 …unsigned int priv_size = PrivateDict::calculate_serialized_size (acc.privateDicts[i], privSzr, ha… in create()
803 if (!acc.is_CID ()) in create()
806 fontdict_mod.init ( &acc.fontDicts[i], sidmap[acc.fontDicts[i].fontName], privInfo ); in create()
818 if (!acc.is_CID ()) in create()
868 const OT::cff1::accelerator_subset_t &acc, in _write_cff1() argument
893 if (unlikely (!dest->serialize (&c, *acc.nameIndex))) in _write_cff1()
921 …if (unlikely (!dest->serialize (&c, *acc.stringIndex, plan.offsets.stringIndexInfo.offSize, plan.s… in _write_cff1()
976 if (acc.fdSelect != &Null(CFF1FDSelect)) in _write_cff1()
980 if (unlikely (!hb_serialize_cff_fdselect (&c, glyphs.len, *acc.fdSelect, acc.fdCount, in _write_cff1()
990 if (acc.fdArray != &Null(CFF1FDArray)) in _write_cff1()
1019 for (unsigned int i = 0; i < acc.privateDicts.len; i++) in _write_cff1()
1030 result = pd->serialize (&c, acc.privateDicts[i], privSzr, subroffset); in _write_cff1()
1056 _hb_subset_cff1 (const OT::cff1::accelerator_subset_t &acc, in _hb_subset_cff1() argument
1063 if (unlikely (!cff_plan.create (acc, plan))) in _hb_subset_cff1()
1072 if (unlikely (!_write_cff1 (cff_plan, acc, plan->glyphs, in _hb_subset_cff1()
1100 OT::cff1::accelerator_subset_t acc; in hb_subset_cff1() local
1101 acc.init(plan->source); in hb_subset_cff1()
1102 bool result = likely (acc.is_valid ()) && in hb_subset_cff1()
1103 _hb_subset_cff1 (acc, data, plan, prime); in hb_subset_cff1()
1105 acc.fini (); in hb_subset_cff1()