Skip to content

Crashes while using different font style #65

@nassifbasheer

Description

@nassifbasheer

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions