Re: Font Style Names for iPhone/iPad

2010-04-14 Thread Gordon Apple
Yes, but no support for actually doing anything useful with CoreText. Can't comment on eventualities, but let's just say I'm not happy. (Sneezy from pollen, Sleepy from too much coding, Grumpy about lack of text support, but definitely not Happy :-) On 4/14/10 10:10 AM, "Matt Moriarity" wrote

Re: Font Style Names for iPhone/iPad

2010-04-13 Thread Kyle Sluder
On Apr 13, 2010, at 7:34 AM, Fritz Anderson wrote: Has discussion of post-3.1 API been cleared? I understood that the moderator has to expressly say so, and I see no reason not to, but I never saw such a message. Also, the OP wanted a solution that worked for iPhone as well. Didn't eve

Re: Font Style Names for iPhone/iPad

2010-04-13 Thread Fritz Anderson
On 12 Apr 2010, at 5:15 PM, Kyle Sluder wrote: > Ah, in that case you're going to need to do a little bit more work. > But CTFont does everything you need. Take a look at > kCTFontStyleNameKey and friends. Has discussion of post-3.1 API been cleared? I understood that the moderator has to expres

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Gordon Apple
Thanks. That did it. I just needed a display name. I used the following when loading the picker view: - (NSString*)styleNameForIndex:(NSUInteger)index inFontFamily:(NSString*)famName { NSString* fontName = [[UIFont fontNamesForFamilyName:famName] objectAtIndex:index]; CTFontRef fontRef

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Kyle Sluder
On Mon, Apr 12, 2010 at 3:08 PM, Gordon Apple wrote: > Thanks for the response, but that is what I have now and am trying to get > away from.  I want ³normal², ³bold² and ³Italic²,  not ³Veranda², > ³Veranda-Bold² and ³Veranda-Italic² for the secondary list.  In many cases > it might be possible t

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Gordon Apple
Thanks for the response, but that is what I have now and am trying to get away from. I want ³normal², ³bold² and ³Italic², not ³Veranda², ³Veranda-Bold² and ³Veranda-Italic² for the secondary list. In many cases it might be possible to strip the font Family name, but the font naming convention i

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Kyle Sluder
On Mon, Apr 12, 2010 at 2:47 PM, Fritz Anderson wrote: > That gets you things like "CourierNewPS-BoldItalicMT," which the OP made > clear he doesn't want. He wants to know how to get the two strings "Courier > New" and "Bold Italic." The first can come from [UIFont familyNames], as > shown in t

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Fritz Anderson
On 12 Apr 2010, at 4:08 PM, Eric E. Dolecki wrote: > http://www.alexcurylo.com/blog/2008/10/05/snippet-available-uifonts/ That gets you things like "CourierNewPS-BoldItalicMT," which the OP made clear he doesn't want. He wants to know how to get the two strings "Courier New" and "Bold Italic."

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Eric E. Dolecki
http://www.alexcurylo.com/blog/2008/10/05/snippet-available-uifonts/ On Mon, Apr 12, 2010 at 5:03 PM, Gordon Apple wrote: > How do I get a list of style names for a particular font family for > iPhone/iPad? I can get the full font names and have my own font picker > which shows those. However,