• 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: What's wrong with "symbol" fonts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's wrong with "symbol" fonts?


  • Subject: Re: What's wrong with "symbol" fonts?
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 26 Jun 2002 17:01:23 -0700

On Wednesday, June 26, 2002, at 04:19 PM, Chaz wrote:

I can't seem to get any of the fonts that display symbols (i.e. Wingdings, Webdings, Monotype Sorts, Zapf Dingbats) to work. There are some symbols that would be useful that I'd like to use in an NSView. I'm using an NSMutableAttributedString and it's drawAtPoint: method to draw text to the view, but anything drawn is not in a symbol font; It's in a regular alpha-numerical font. I've also noticed that TextEdit can't display these fonts either. Is it possible to use these fonts somehow?

Yes, it is. Just keep in mind that Cocoa text is based on Unicode. To display a particular symbol, you need to use the Unicode character for that symbol. If you are entering them in TextEdit, you may find a Symbol keyboard on your system that may help. Programmatically, you can use stringWithFormat:@"%C" or various other methods.

Also, is it possible to draw text upside-down in an NSView?

Upside down, sideways, or anything in between, by changing the transform. Take a look at the CircleView example, for example.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: What's wrong with "symbol" fonts?
      • From: Matt Judy <email@hidden>
References: 
 >What's wrong with "symbol" fonts? (From: Chaz <email@hidden>)

  • Prev by Date: Re: valueForKey:@"class"
  • Next by Date: Re: What's wrong with "symbol" fonts?
  • Previous by thread: What's wrong with "symbol" fonts?
  • Next by thread: Re: What's wrong with "symbol" fonts?
  • Index(es):
    • Date
    • Thread