Re: Loading fonts from bundles (again!)
Re: Loading fonts from bundles (again!)
- Subject: Re: Loading fonts from bundles (again!)
- From: Brian Webster <email@hidden>
- Date: Mon, 27 Jan 2003 22:48:18 -0600
On Monday, January 27, 2003, at 06:05 PM,
email@hidden wrote:
Most of it works fine - the font path is found, the fsSpec is
successfully made.
But FMActivateFonts returns an error code of -39...
According to the Macerrors.h, -39 is an eofErr... Which is just plain
weird. It tends to suggest there's something wrong with the font: but
the font works fine if you plonk it in the Fonts folder.
Something broken in OS X 10.2.3, perhaps? Or, more likely, something
I'm doing wrong?
Is this a font suitcase you're working with? If so, my best guess is
that the font has a resource fork that is not being properly copied
into your application bundle when you're doing your build. Project
Builder, for some reason, does not copy resource forks when copying
files into the resources folder of a bundle. I've had this problem in
the past (spent a few hours trying to figure out why MLTE wouldn't load
a SimpleText file with style resources) and have gotten around it by
creating a shell script phase that uses /Developer/Tools/CpMac to copy
the file properly.
--
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.