[coretext] Minor optimization

This commit is contained in:
Behdad Esfahbod 2014-01-28 17:10:05 -05:00
parent 24e6b11f12
commit 748b2782e4
1 changed files with 3 additions and 3 deletions

View File

@ -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, &notdef, NULL, 1);
for (CFIndex j = 0; j < range.length; j++)
{
CGGlyph notdef = 0;
double advance = CTFontGetAdvancesForGlyphs (font_data->ct_font, kCTFontHorizontalOrientation, &notdef, NULL, 1);
info->codepoint = notdef;
/* TODO We have to fixup clusters later. See vis_clusters in
* hb-uniscribe.cc for example. */