Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!sdd.hp.com!samsung!munnari.oz.au!murdu!ucsvc.ucs.unimelb.edu.au!wehi!baxter_a From: BAXTER_A@wehi.dn.mu.oz Newsgroups: comp.sys.amiga Subject: Re: default font height under 2.0 Message-ID: <13554@wehi.dn.mu.oz> Date: 29 Sep 90 20:51:09 GMT References: <90270.152921GDAL3AI@cc1.kuleuven.ac.be> Organization: Walter & Eliza Hall Institute Lines: 23 In article <90270.152921GDAL3AI@cc1.kuleuven.ac.be>, GDAL3AI@cc1.kuleuven.ac.be writes: > I'm looking for a way to find the heigth of the default system font > under 2.0 . The problem I have is the following: I want to print a > text in a window via PrintIText. I want to determine the window > heigth before opening it so I get a nice window that fits around > the text. What is the right way to do this ??? (under 2.0) > BTW. I find the Width by using IntuiTextLength (or something like that, > can't remember... is that right too ???) > If you can help me with this, please respond as fast as possible, 'cos > I'll leave soon.. > > MB 1) AskFont(rp, textAttr) struct RastPort *rp; struct TextAttr *textAttr FUNCTION: This function fills the text attributes structure with the attributes of the current font in the rasport. 2) Yes Regards Alan