diff options
-rw-r--r-- | cocoa/PlatCocoa.mm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 000d5957e..b1de20902 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -944,8 +944,6 @@ static size_t utf8LengthFromLead(unsigned char uch) { void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positions) { CFStringEncoding encoding = EncodingFromCharacterSet(unicodeMode, FontCharacterSet(font_)); - for (int i = 0; i < len; i++) - positions [i] = 0; textLayout->setText (reinterpret_cast<const UInt8*>(s), len, encoding, *reinterpret_cast<QuartzTextStyle*>(font_.GetID())); CTLineRef mLine = textLayout->getCTLine(); |