Lines Matching refs:num_glyphs

313   bool sanitize (hb_sanitize_context_t *c, unsigned int num_glyphs) const  in sanitize()
316 return_trace (c->check_struct (this) && sids[num_glyphs - 1].sanitize (c)); in sanitize()
327 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
332 for (unsigned int glyph = 1; glyph < num_glyphs; glyph++) in get_glyph()
340 unsigned int get_size (unsigned int num_glyphs) const in get_size()
342 assert (num_glyphs > 0); in get_size()
343 return HBUINT16::static_size * (num_glyphs - 1); in get_size()
367 bool sanitize (hb_sanitize_context_t *c, unsigned int num_glyphs) const in sanitize()
372 num_glyphs--; in sanitize()
373 for (unsigned int i = 0; num_glyphs > 0; i++) in sanitize()
375 if (unlikely (!ranges[i].sanitize (c) || (num_glyphs < ranges[i].nLeft + 1))) in sanitize()
377 num_glyphs -= (ranges[i].nLeft + 1); in sanitize()
396 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
402 if (glyph >= num_glyphs) in get_glyph()
412 unsigned int get_size (unsigned int num_glyphs) const in get_size()
415 int glyph = (int)num_glyphs; in get_size()
456 bool serialize (hb_serialize_context_t *c, const Charset &src, unsigned int num_glyphs) in serialize()
459 unsigned int size = src.get_size (num_glyphs); in serialize()
469 unsigned int num_glyphs, in serialize()
478 …*fmt0 = c->allocate_size<Charset0> (Charset0::min_size + HBUINT16::static_size * (num_glyphs - 1)); in serialize()
531 unsigned int get_size (unsigned int num_glyphs) const in get_size()
535 size += u.format0.get_size (num_glyphs); in get_size()
537 size += u.format1.get_size (num_glyphs); in get_size()
539 size += u.format2.get_size (num_glyphs); in get_size()
553 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
556 return u.format0.get_glyph (sid, num_glyphs); in get_glyph()
558 return u.format1.get_glyph (sid, num_glyphs); in get_glyph()
560 return u.format2.get_glyph (sid, num_glyphs); in get_glyph()
1072 num_glyphs = charStrings->count; in init()
1073 if (num_glyphs != sc.get_num_glyphs ()) in init()
1149 return charset->get_glyph (sid, num_glyphs); in std_code_to_glyph()
1174 unsigned int num_glyphs; member