[MacRuby-devel] CATextLayer.font

Ben Koski ben.koski at gmail.com
Tue Mar 22 20:11:13 PDT 2011


I'm having trouble trying to set the font property on a CATextLayer using
the latest version of macruby.

I've noticed that there is already a ticket for an issue when trying to set
the font using a NSFont instance (http://www.macruby.org/trac/ticket/1114).

I tried using CGFontCreateWithFontName('Georgia') to create the font
reference, with similar results (expected instance of Pointer, got
`#<__NSCFType:).  CTFontCreateWithName didn't work either.

Does anyone here have an ideas/suggestions for workarounds?  The rest of the
CATextLayer properties seem to work fine, it's just font that causes errors.

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110322/2b49f60c/attachment.html>


More information about the MacRuby-devel mailing list