• 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: NSMutableAttributedString Formating Problems...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableAttributedString Formating Problems...


  • Subject: Re: NSMutableAttributedString Formating Problems...
  • From: Brian Webster <email@hidden>
  • Date: Sat, 1 Jun 2002 16:29:39 -0500

To set bold/italic traits, you can use the -applyFontTraits:range: method declared in the NSMutableAttributedString additions in the Application Kit. However, if you're working with a font that does not have an italic variation installed on your system, I don't believe you'll be able to display an italic version.

For setting underlined text, use addAttribute:value:range: with the NSUnderlineStyleAttributeName attribute and an NSNumber with a value of 1 for the value argument. This should work regardless of the font you're working with.

On Saturday, June 1, 2002, at 02:23 PM, cocoa-dev-
email@hidden wrote:

I am trying to make cretin parts of it italic and underlined, but I
can't figure out how to do that. I used kind of a work around for bold
by using a bold version of the same font, but there is not an italic or
underlined version of the font I am using. Is there some sort of flag
that I can use? Can anyone help?

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: isa
  • Next by Date: Re: isa
  • Previous by thread: NSMutableAttributedString Formating Problems...
  • Next by thread: Re: URL friendly NSString?
  • Index(es):
    • Date
    • Thread