[coretext] Fix last range

Test with:

hb-view /Library/Fonts/Zapfino.ttf ZapfinoZapfino --features=-dlig[7:] --shaper=coretext
This commit is contained in:
Behdad Esfahbod 2014-08-10 18:59:47 -04:00
parent c2b151d952
commit 77a7a53ace
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
last_range = range;
}
if (start != chars_len && last_range->font)
CFAttributedStringSetAttribute (attr_string, CFRangeMake (start, chars_len - start - 1),
CFAttributedStringSetAttribute (attr_string, CFRangeMake (start, chars_len - start),
kCTFontAttributeName, last_range->font);
for (unsigned int i = 0; i < range_records.len; i++)