Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!cbmehq!cbmfra!swinjm!forgeas From: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Newsgroups: comp.sys.amiga.tech Subject: Re: Trouble with ADOS 1.3 and Fonts Message-ID: <17fc5a46.ARN01911@swinjm.UUCP> Date: 2 Oct 90 13:42:30 GMT References: <13387@wehi.dn.mu.oz> <17f70f12.ARN01888@swinjm.UUCP> <461@cbmger.UUCP> Reply-To: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Followup-To: comp.sys.amiga.tech Organization: The Software Winery Lines: 38 In article <461@cbmger.UUCP>, Peter Kittel GERMANY writes: > In article <17f70f12.ARN01888@swinjm.UUCP> forgeas@swinjm.UUCP (Jean-Michel Forgeas) writes: > >In article <13387@wehi.dn.mu.oz>, BAXTER_A@wehi.dn.mu.oz writes: > >- Do an OpenFont() to get the previously loaded font in memory > >- If successfull, compare the Y size obtained with the one you really > > want, because if you ask Times15 and there is Times24 in memory, > > OpenFont will succes with Times24. > >- So if you did not get what you want do an OpenDiskFont() > > > >With this method, the opened font stays in memory, but every time you > >run your program it will find it so will not reload it. > > But after your own theory, you still wouldn't be able to get rid of > the old version? From the RKM (perhaps too old to be valid ? RKM 1.0, page 2-210 Text): "Even though you close a font, it doesn't get unloaded Memory unless a font with a different name is specified for loading. In this case, any font (except the topaz set) which has been closed can have its memory area freed and it will no longer be accessible. If you close a font to go to a different point-size, it will NOT cause a disk-access" So effectively I can't get rid of the old version. But as soon as a program loads an other font (like your demo) the old one is unloaded if its accessor count is zero. > Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Best regards, Jean-Michel -- \___/ Jean-Michel Forgeas \-/ cbmvax!cbmehq!cbmfra!swinjm!forgeas | The Software Winery -^- And, where is the universe ?