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

FontWithName Re: How to change default font for NSTextView?


  • Subject: FontWithName Re: How to change default font for NSTextView?
  • From: Zac Belado <email@hidden>
  • Date: Wed, 13 Feb 2002 14:17:23 -0800

On 2/13/02 12:19 PM, "Douglas Davidson" <email@hidden> wrote:

> I believe the problem here is that the system font is not actually named
> "Lucida Grande"; that is the display name, not the internal name used by
> fontWithName:.

Is there any way to check for the availability of a specific font name
before attempting to create an NSFont object with that name?

If you try something like

[NSFont fontWithName:@"HelveticaBoldOblique" size:12]]

You get a nasty error and a possible crash. I'd like to be able to test the
name first and maybe use the system font if the name isn't correct.

--

We are born naked, wet and hungry. Then things get worse.
_______________________________________________
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: FontWithName Re: How to change default font for NSTextView?
      • From: Aki Inoue <email@hidden>
References: 
 >Re: How to change default font for NSTextView? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Sockets documentation?
  • Next by Date: prepareSavePanel and Hide extension
  • Previous by thread: Re: How to change default font for NSTextView?
  • Next by thread: Re: FontWithName Re: How to change default font for NSTextView?
  • Index(es):
    • Date
    • Thread