- hb_unicode_funcs_t *unicode = c->buffer->unicode;
- hb_glyph_info_t *info = c->buffer->info;
-
- unsigned int count = c->buffer->len;
- for (unsigned int i = 1; i < count; i++) {
- info[i].general_category() = unicode->get_general_category (info[i].codepoint);
- info[i].combining_class() = unicode->get_combining_class (info[i].codepoint);
- }
+ unsigned int count = buffer->len;
+ for (unsigned int i = 1; i < count; i++)
+ hb_glyph_info_set_unicode_props (&buffer->info[i], buffer->unicode);