• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: font problem with NSTextView / using ATSUI with Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font problem with NSTextView / using ATSUI with Cocoa?


  • Subject: Re: font problem with NSTextView / using ATSUI with Cocoa?
  • From: Aki Inoue <email@hidden>
  • Date: Tue, 23 Oct 2007 23:44:01 -0700

The font is implemented as so called a "Pi" font.

In Unicode handling, Windows and Cocoa apps map the characters to U +F0xx area instead of the original ASCII.

So, for example, in order to display the digit in font, you should specify 0xF030 ~ 0xF039 (= 0xF000 + '0').

ATSUI maps ASCII characters for binary compatibility with Classic apps.

I can successfully input those characters in TextEdit using the Character Palette.

Aki

On 2007/10/23, at 23:22, Jacob Rundall wrote:

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

_______________________________________________

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


References: 
 >font problem with NSTextView / using ATSUI with Cocoa? (From: Jacob Rundall <email@hidden>)

  • Prev by Date: font problem with NSTextView / using ATSUI with Cocoa?
  • Next by Date: Binding to NSArrayController selection
  • Previous by thread: font problem with NSTextView / using ATSUI with Cocoa?
  • Next by thread: Binding to NSArrayController selection
  • Index(es):
    • Date
    • Thread