• Home
  • Raw
  • Download

Lines Matching refs:num_glyphs

315   bool sanitize (hb_sanitize_context_t *c, unsigned int num_glyphs) const  in sanitize()
318 return_trace (c->check_struct (this) && sids[num_glyphs - 1].sanitize (c)); in sanitize()
329 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
334 for (unsigned int glyph = 1; glyph < num_glyphs; glyph++) in get_glyph()
342 unsigned int get_size (unsigned int num_glyphs) const in get_size()
344 assert (num_glyphs > 0); in get_size()
345 return HBUINT16::static_size * (num_glyphs - 1); in get_size()
369 bool sanitize (hb_sanitize_context_t *c, unsigned int num_glyphs) const in sanitize()
374 num_glyphs--; in sanitize()
375 for (unsigned int i = 0; num_glyphs > 0; i++) in sanitize()
377 if (unlikely (!ranges[i].sanitize (c) || (num_glyphs < ranges[i].nLeft + 1))) in sanitize()
379 num_glyphs -= (ranges[i].nLeft + 1); in sanitize()
398 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
404 if (glyph >= num_glyphs) in get_glyph()
414 unsigned int get_size (unsigned int num_glyphs) const in get_size()
417 int glyph = (int)num_glyphs; in get_size()
443 bool serialize (hb_serialize_context_t *c, const Charset &src, unsigned int num_glyphs) in serialize()
446 unsigned int size = src.get_size (num_glyphs); in serialize()
456 unsigned int num_glyphs, in serialize()
467 …*fmt0 = c->allocate_size<Charset0> (Charset0::min_size + HBUINT16::static_size * (num_glyphs - 1)); in serialize()
511 unsigned int get_size (unsigned int num_glyphs) const in get_size()
515 case 0: return min_size + u.format0.get_size (num_glyphs); in get_size()
516 case 1: return min_size + u.format1.get_size (num_glyphs); in get_size()
517 case 2: return min_size + u.format2.get_size (num_glyphs); in get_size()
522 hb_codepoint_t get_sid (hb_codepoint_t glyph, unsigned int num_glyphs) const in get_sid()
524 if (unlikely (glyph >= num_glyphs)) return 0; in get_sid()
534 hb_codepoint_t get_glyph (hb_codepoint_t sid, unsigned int num_glyphs) const in get_glyph()
538 case 0: return u.format0.get_glyph (sid, num_glyphs); in get_glyph()
539 case 1: return u.format1.get_glyph (sid, num_glyphs); in get_glyph()
540 case 2: return u.format2.get_glyph (sid, num_glyphs); in get_glyph()
1086 num_glyphs = charStrings->count; in init()
1087 if (num_glyphs != sc.get_num_glyphs ()) in init()
1164 return charset->get_glyph (sid, num_glyphs); in std_code_to_glyph()
1199 return charset->get_sid (glyph, num_glyphs); in glyph_to_sid()
1224 return charset->get_glyph (sid, num_glyphs); in sid_to_glyph()
1267 unsigned int num_glyphs; member
1280 for (hb_codepoint_t gid = 0; gid < num_glyphs; gid++) in init()