Re: Common Font Style Names

2011-02-05 Thread Matt Neuburg
On Fri, 04 Feb 2011 13:00:56 -0600, Gordon Apple said: >This used to work, but not under iOS 4. > >- (NSString*)styleNameForIndex:(NSUInteger)index >inFontFamily:(NSString*)famName { >NSString* fontName = [[UIFont fontNamesForFamilyName:famName] >objectAtIndex:index]; >CTFontRef fontRef =

Common Font Style Names

2011-02-04 Thread Gordon Apple
This used to work, but not under iOS 4. - (NSString*)styleNameForIndex:(NSUInteger)index inFontFamily:(NSString*)famName { NSString* fontName = [[UIFont fontNamesForFamilyName:famName] objectAtIndex:index]; CTFontRef fontRef = CTFontCreateWithName((CFStringRef)fontName, 0.0, NULL); CFS