• 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: Fonts, please help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fonts, please help!


  • Subject: Re: Fonts, please help!
  • From: email@hidden
  • Date: Mon, 11 Mar 2002 23:59:15 -0800

I was wondering if there was any way I could use different font
styles besides Bold and Italic. What I am wanting right now is
some kind of Shadow style, Outline style, Strikethrough style.
Eventually I would like to use all the styles in Word X (Double
Strikethrough style, etc.) Is this possible?

You can find the standard text attributes in NSAttributedString.h, in AppKit (not the one in Foundation, the AppKit adds all the interesting attributes on top of Foundation's implementation). The font is one attribute, and things like bold, italic, etc. are considered attributes of the font, so you may also want to look in NSFont.h and NSFontManager.h. There are also paragraph styles, see NSParagraphStyle.h. There is doc for all of these classes on your machine and on the web.
No attempt has been made to match Word's feature set. There are some attributes you will not find a match for, going in both directions, I think. If you really want to implement styles yourself, it can be done (in some cases, anyway) with some precise subclassing of the text system, but this is extremely advanced stuff. I would recommend working with the existing styles for now.

Ben Haller
Stick Software
_______________________________________________
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.

  • Prev by Date: Re: List of errors
  • Next by Date: Re: NSTextField refreshes are wacky.
  • Previous by thread: Fonts, please help!
  • Next by thread: Fwd: NSColorWell
  • Index(es):
    • Date
    • Thread