diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 25e4055b0113f82c928a5fd68d375739c5c2eb23..f247c08f4d0390bc9cbb5f49efe2e54e201d831d 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -673,11 +673,11 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan, hb_glyph_info_t *info = buffer->info + buffer->len; buffer->len += range.length; + CGGlyph notdef = 0; + double advance = CTFontGetAdvancesForGlyphs (font_data->ct_font, kCTFontHorizontalOrientation, ¬def, NULL, 1); + for (CFIndex j = 0; j < range.length; j++) { - CGGlyph notdef = 0; - double advance = CTFontGetAdvancesForGlyphs (font_data->ct_font, kCTFontHorizontalOrientation, ¬def, NULL, 1); - info->codepoint = notdef; /* TODO We have to fixup clusters later. See vis_clusters in * hb-uniscribe.cc for example. */