• 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: Cocoa font question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa font question


  • Subject: Re: Cocoa font question
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 20 Oct 2004 11:10:18 -0700

On Oct 19, 2004, at 9:54 AM, Peter Karlsson wrote:

Dear list!

Is it possible to use a font in a Cocoa app that is not istalled on the
system? Let me explain...

I want to create a LCD display in my app, so I need som sort of LCD font (I
am open for suggestions) but I want it to only be a part of my app so no
other app can use it.

Yes you can. Refer to the (Carbon/Classic) Font Manager documentation. You will need to get the path to the font file in your bundle resources, then create a FSRef -> FSSpec to pass to the FM functions. STFA here and you'll find a bit of code that I previously posted which shows you how to do this. :)
--
Shaun Wexler
MacFOH
http://www.macfoh.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Cocoa font question (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: A question I'm ashamed to ask
  • Next by Date: Re: A question I'm ashamed to ask
  • Previous by thread: Re: Cocoa font question
  • Next by thread: Looking for example of using controls as part of a NSTableView & bindings
  • Index(es):
    • Date
    • Thread