RTLabel icon indicating copy to clipboard operation
RTLabel copied to clipboard

Crashes while using different font style

Open nassifbasheer opened this issue 9 years ago • 0 comments

Hi,

I am using Varela Round font through out my project. I downloaded this library and added the VarelaRound-Regular.ttf to the resource folder , included "VarelaRound-Regular.ttf" to the info.plist file under font category.

I tried the following code NSMutableDictionary *row2 = [NSMutableDictionary dictionary]; [ screen shot 2015-07-11 at 9 26 38 am row2 setObject:@"underlined text" forKey:@"text"]; [self.dataArray addObject:row2]; running this crashes.

The log i get is RTLabelProject[3300:70377] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString replaceOccurrencesOfString:withString:options:range:]: Range {0, 1} out of bounds; string length 0'

nassifbasheer avatar Jul 11 '15 03:07 nassifbasheer