|
|
|
@@ -274,7 +274,8 @@ namespace CoreTextTypeLayout |
|
|
|
if (attribStringLen <= wordBegin)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
const auto wordEnd = jmin (attribStringLen, (currentPosition + attr.range.getLength()).getAddress() - beginPtr.getAddress());
|
|
|
|
const auto wordEndAddress = (currentPosition + attr.range.getLength()).getAddress();
|
|
|
|
const auto wordEnd = jmin (attribStringLen, (CFIndex) (wordEndAddress - beginPtr.getAddress()));
|
|
|
|
const auto range = CFRangeMake (wordBegin, wordEnd - wordBegin);
|
|
|
|
|
|
|
|
if (auto ctFontRef = getOrCreateFont (attr.font))
|
|
|
|
|