[Mono-osx] [MonoMac] Font property on CATextLayer

kjpou kjpou at pt.lu
Mon Dec 13 06:10:01 EST 2010


Hello all

Have a question on setting the font property of a CATextLayer.

Right now the Font property is not defined for a CATextLayer.  I was 
going to define it but am running into a small problem with the definition.

 From the documentation it can be one of the following:

May be either a CTFontRef, a CGFontRef, an instance of NSFont (Mac OS X 
only), or a string naming the font. (In iOS, you cannot assign a UIFont 
object to this property.) Defaults to Helvetica.

Not exactly sure how to define this.  Was going to try a NSObject but 
CGFont does not inherent from NSObject.

Any help would be greatly appreciated.

Thanks in advance

Kenneth


More information about the Mono-osx mailing list