“Andalus” custom font not work in UITableViewCell. Steps followed:
-
Add font file name “Andalus.ttf” to “Fonts provided by application” key in app-info.plist
-
Get font name using
NSLog(@"%@", [UIFont familyNames]);// it return “Andalus” -
Set font name using:
cell.textLabel.font = [UIFont fontWithName:@"Andalus" size:10];cell.detailTextLabel.font = [UIFont fontWithName:@"Andalus" size:10];
in
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
and
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
but a word like ‘حمل’ not appear as in a textedit with the same font
I get data using UTF8 from sqlite
thank you for advance
Does Andalus have more than one variant, e.g. Andalus Strong and Andalus Sharp? If that is the case you have to specify the name of the variant you wish to use.
Check the array returned by
[UIFont fontNamesForFamilyName:@"Andalus"]