font problem with NSTextView / using ATSUI with Cocoa?
font problem with NSTextView / using ATSUI with Cocoa?
- Subject: font problem with NSTextView / using ATSUI with Cocoa?
- From: Jacob Rundall <email@hidden>
- Date: Wed, 24 Oct 2007 01:22:31 -0500
I'm trying to to build a font-based musical notation program in Cocoa
using a special TrueType music font called Boulez. When I use an
NSTextView object and select the Boulez font from the Font Panel
object, Lucida Grande is used instead. I've also tried setting the
font using setFont and the same thing happens. I adapted a Carbon
example using ATSUI and that displays the font just fine. Are there
some types of fonts that simply don't work with Cocoa's text handling?
I'd much rather create a Cocoa app than a Carbon app. From what I
understand it is possible to use ATSUI for displaying text within a
Cocoa app, but I haven't been able to find any example code or
tutorials for this particular combination. Does anybody know where I
can find such a thing?
Thanks very much,
Jake Rundall
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden