I'm trying to add some custom font support to an iPad app and I keep running
into a spinlock from CGContextSelectFont.
Happens on SDK 4.0 Simulator and Device running 3.2.2. I've narrowed down the
code to:
CGContextRef context = CGBitmapContextCreate(&data, 1, 1, 8,
4, CGColorSpaceCreateDeviceRGB(),
kCGImageAlphaPremultipliedLast);
CGContextSelectFont(context, [@"Comic Sans MS Bold"
UTF8String], 24.0, kCGEncodingMacRoman);
CGContextRelease(context);
Depending on where I put this code, sometimes it runs through just fine and
sometimes it spinlocks. The stack trace is just:
0: __spin_lock
1: ??
Where is it legal to call this function and why would it spin lock elsewhere?
Help!
-Stevo Brock
Head of Development
Monkey Tools, LLC
www.monkey-tools.com
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]