[coretext] Fix last range
Test with: hb-view /Library/Fonts/Zapfino.ttf ZapfinoZapfino --features=-dlig[7:] --shaper=coretext
This commit is contained in:
parent
c2b151d952
commit
77a7a53ace
|
@ -659,7 +659,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
|
||||||
last_range = range;
|
last_range = range;
|
||||||
}
|
}
|
||||||
if (start != chars_len && last_range->font)
|
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);
|
kCTFontAttributeName, last_range->font);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < range_records.len; i++)
|
for (unsigned int i = 0; i < range_records.len; i++)
|
||||||
|
|
Loading…
Reference in New Issue