Skip navigation.
 
mlRe: CATextLayer metrics
FROM : Karl Goiser
DATE : Fri Feb 29 23:00:55 2008

Thanks Scott and Bill!

On 01/03/2008, at 3:42 AM, Scott Anguish wrote:

> CATextLayer is largely a convenience class.  It provides text 
> features, but very little flexibility.
>
> You can easily subclass CALayer and create your own text layer that 
> uses NSFont, complex text layout , and all the familiar methods. 
> Plus you'll get more flexibility.


I guess that was the answer all along..


The irksome thing is that rolling your own text layer means 
duplicating pretty-well all of CATextLayer (maybe that's not much!) - 
all for the want of some details of how the text is rendered...  If 
details were published, it would be pretty easy to subclass and reuse 
- which is, of course, one of the main features and objectives of 
object-oriented programming.


But Scott is probably right in that I might want more flexibility than 
could be provided by any subclassing of CATextLayer.


Thanks again guys!


Karl

Related mailsAuthorDate
mlCATextLayer metrics Karl Goiser Feb 28, 21:25
mlRe: CATextLayer metrics Bill Dudney Feb 29, 04:47
mlRe: CATextLayer metrics Scott Anguish Feb 29, 17:42
mlRe: CATextLayer metrics Karl Goiser Feb 29, 23:00
mlRe: CATextLayer metrics Scott Anguish Feb 29, 23:30