hb_glyph_info_t *info = buffer->info + buffer->len;
CGGlyph notdef = 0;
- double advance = CTFontGetAdvancesForGlyphs (font_data->ct_font, kCTFontHorizontalOrientation, ¬def, NULL, 1);
+ double advance = CTFontGetAdvancesForGlyphs (font_data->ct_font,
+ HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction) ?
+ kCTFontHorizontalOrientation :
+ kCTFontVerticalOrientation,
+ ¬def, NULL, 1);
+ /* XXX adjust sign / scale of advance. */
unsigned int old_len = buffer->len;
for (CFIndex j = range.location; j < range.location + range.length; j++)