[comp.sys.mac.programmer] NFNT and FONT from FOND resources

jamesm@sco.COM (James M. Moore) (10/14/89)

Last night I hacked out a quick program to split a Font/DA mover
document into a seperate f/da mover document for each font in the
file.  Inside of the FOND structure, in the ffAssoc array, it gives
you the ID of the resource for the FONT or the NFNT associated with
the FOND.  Is there any way to tell a FONT from an NFNT ID given
just the information from ffAssoc?  I ended up just doing a
GetResource on FONT, and if that failed tried to get the NFNT with
the same ID.  Seems to work fine, but is there a more elegant way?

[Side note - the LSC 4.0 class library is wonderful; almost all of
my time was spent on learning how to use the resource manager calls
that I'd never had reason to use before.] 
-- 
James Moore                            | You will face many tests in life.
Santa Cruz Operation UNIX Tech Support |
jamesm@sco.com                         | This is not one of them.