2

i'm branding an iphone app and the designer wants to display list items using Georgia. This is not a big deal, but he wants them do appear as small-caps..

is this possible to do in iPhone os3?

Hagelin
  • 16,440
  • 5
  • 29
  • 37
Thomas Joos
  • 2,451
  • 5
  • 26
  • 30

1 Answers1

0

I assume by 'list item' you mean a UITableViewCell; if so, you can change the font family and size by setting the textLabel.font property in the cellForRowAtIndexPath delegate method:

- (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    // setup cell
    cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:10];
    // return cell
}

Update: Ah, I just noticed you're looking for small caps, not a small font size; whoops. As far as I know there's no easy way to do it. You could try loading a small caps font yourself, which seems ridiculously painful.

Community
  • 1
  • 1
conmulligan
  • 7,038
  • 6
  • 33
  • 44