[comp.sys.mac.programmer] FOND/NFNT/FONT question

sdy@ssc-vax.UUCP (Sea Lance) (03/01/88)

[Warning: Novice -- but improving programmer -- approaching]

I've been trying to get at some of the character bitmaps to play around with
and I'm noticing something kinda strange. I had been using
if(RealFont(FontID))... (;-) where FontID was calculated via IM Vol 1 as
(128*font_num)+point_size to determine what to put in my pointsize menu. Then
when I looked in IM Vol 4 I noticed I should be dealing first with FOND
resources to get ahold of the font record.  So to get the resource ID of the
pointsize/style I want I look through the font association table (FOND + 58
bytes to the start of the assoc file) for the record that matches -- only I can
never seem to find a record that matches the smallest available point size of
the font, even when RealFont() returns NOT FALSE for it. I've tried just
matching pointsize and ignoring the style but never find one. Is there
something I'm missing here? like maybe a big clue? or a tech note?

I'm using System 4.1, finder 5.5, suitcase 1.0, and built my font file (for
suitcase) with F/DA Mover 3.2. And all of this work is being done in LSC 2.15
on an old 128k mac upgraded to 512e.

On another probably unrelated note -- does anyone have an explanation why THINK
chose to name some of the record attributes in their fontrec different from
what the IM tells you they are supposed to be? (specifically fRectHeight and
fRectWidth become fRectMax(? mac at home) and chHeight) not such a biggie since
we do get to look at the include files and diddle with them.

thanks

steve.

PS -- as to the beginner programming thread -- so far I've really only needed
IM 1,4 and the examples that come with LSC -- but I do use both of Knaster's
books for conceptual references. And I try to pay a lot of attention to what is
put out on the net.
-- 
Steven D. Yee                 >>> my employer does not share my opinions  <<<
uw-beaver!ssc-vax!sdy         >>> (that's because I'm always right! ;-)   <<<

(chant) We want more!  We want more!  We want more lines than four!!!!!!!