のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

add

hb_buffer_t::add() at hb-buffer.cc:241 0x7ffff7b33f90	
hb_buffer_add_utf<hb_utf8_t>() at hb-buffer.cc:1,484 0x7ffff7b36fb5	
hb_buffer_add_utf8() at hb-buffer.cc:1,519 0x7ffff7b3629b	
shape_options_t::populate_buffer() at options.hh:226 0x4048ef	
shape_consumer_t<view_cairo_t>::consume_line() at shape-consumer.hh:58 0x405365	
main_font_text_t<shape_consumer_t<view_cairo_t>, 256, 8>::main() at main-font-text.hh:80 0x4051eb	
main() at hb-view.cc:39 0x404410	
230void
231hb_buffer_t::add (hb_codepoint_t  codepoint,
232		  unsigned int    cluster)
233{
234  hb_glyph_info_t *glyph;
235
236  if (unlikely (!ensure (len + 1))) return;
237
238  glyph = &info[len];
239
240  memset (glyph, 0, sizeof (*glyph));
241  glyph->codepoint = codepoint;
242  glyph->mask = 1;
243  glyph->cluster = cluster;
244
245  len++;
246}
247