• 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: How to change default font for NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change default font for NSTextView?


  • Subject: Re: How to change default font for NSTextView?
  • From: Manfred Lippert <email@hidden>
  • Date: Wed, 13 Feb 2002 21:03:11 +0100

> Given a textview, you can call the NSText method setFont:

Thank you! It works. :-)
I first tried it with [NSFont fontWithName:@"Lucida Grande" size:12]], but
then the line spacing was wrong and my Font Panel does not show Lucida
Grande. (_None_ of the Fonts was selected in the Font Panel.)
Now I use [NSFont systemFontOfSize:12] and this works perfectly and is what
I want.

Thanx,
Mani
_______________________________________________
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: How to change default font for NSTextView?
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: How to change default font for NSTextView? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Directory Services vs. NSL
  • Next by Date: Re: How to change default font for NSTextView?
  • Previous by thread: Re: How to change default font for NSTextView?
  • Next by thread: Re: How to change default font for NSTextView?
  • Index(es):
    • Date
    • Thread