Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes while using different font style #65

Open
nassifbasheer opened this issue Jul 11, 2015 · 0 comments
Open

Crashes while using different font style #65

nassifbasheer opened this issue Jul 11, 2015 · 0 comments

Comments

@nassifbasheer
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant