C (180/301)

From:Lee Atkins
Date:15 Aug 99 at 12:25:15
Subject:Font sizes.

From: Lee Atkins <lee@loonyjuicesoftware.freeserve.co.uk>

Hello,

Is there a way of getting the size of a font Text() will use before opening
a window?
I want to adjust the size of the window depending on the size of the font
the user has selected as the system default.
I would have thought MyScreen->RastPort.Font->tf_YSize would have done it
(where MyScreen has been obtained from locking the default public screen)
I can adjust the width ok using IntuiTextLength() but am stuck at getting a
suitable size.

PS.
Thanks for the comments on putting stuff into chip. I settled on storing it
in fast until I needed it in chip, that way I'm not hogging chip ram all the
time.