Re: [iPhone] Custom -sizeWithFont: and CGContextRef question

2009-07-17 Thread Alex Kac
Custom fonts. It's the only way to do it. UIFont does not support custom fonts. -- CEO WebIS Sent from my phone On Jul 17, 2009, at 1:05 AM, Scott Thompson wrote: On Jul 16, 2009, at 1:30 PM, Michael Hoy wrote: Hello all, For various reasons I'd like to implement a method similar in f

Re: [iPhone] Custom -sizeWithFont: and CGContextRef question

2009-07-16 Thread Scott Thompson
On Jul 16, 2009, at 1:30 PM, Michael Hoy wrote: Hello all, For various reasons I'd like to implement a method similar in function to NSString's -sizeWithFont: (UIKit addition). The difference is it takes a CGFontRef. Here's a rough idea of the code (a slight adaptation of Timothy Ritchey

[iPhone] Custom -sizeWithFont: and CGContextRef question

2009-07-16 Thread Michael Hoy
Hello all, For various reasons I'd like to implement a method similar in function to NSString's -sizeWithFont: (UIKit addition). The difference is it takes a CGFontRef. Here's a rough idea of the code (a slight adaptation of Timothy Ritchey's TTFontCell code, and I apologize because I can