From 77a7a53acef7de355116d488e7d64ff1d7e9e9e1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 10 Aug 2014 18:59:47 -0400 Subject: [PATCH] [coretext] Fix last range Test with: hb-view /Library/Fonts/Zapfino.ttf ZapfinoZapfino --features=-dlig[7:] --shaper=coretext --- src/hb-coretext.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 844ad017e..60a5d3b95 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -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++)