🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5555

Re: Trouble with ADOS 1.3 and Fonts

#5555
From: Peter Kittel GERMANY
Date: Mon, 01 Oct 1990 13:28
34 lines
2200 bytes
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:
>>
>> In my program, I open a font. I close it and quit. Memory counter drops
                                   ^^^^^ REALLY?
>> a bit. No deal. Flush fonts. No memory loss. Fair enough. After I run
>> the program, the font sits in memory, and takes up space.
>> [...]
>> SO: each time I run the program, I get a _new_ copy of the font in memory.
>
>Are you opening the font with OpenDiskFont() ? This function does not
>look for previously loaded fonts in memory, but reload them from disk
>every time it is called.

Can't be. Yes I'm lazy, and I've done a demo running for DAYS and I'm
permanently swapping fonts, topaz, diamond and an own one. First,
I CloseFont the actual one, then I OpenDiskFont the next one.
No problems with memory, I get it all back. What do you differently?

>- 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?

-- 
Best regards, Dr. Peter Kittel  // E-Mail to  \\  Only my personal opinions... 
Commodore Frankfurt, Germany  \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
Technical Details
Message-ID: <461@cbmger.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!rutgers!cbmvax!cbmehq!cbmger!peterk
References: <13387@wehi.dn.mu.oz> <17f70f12.ARN01888@swinjm.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!rutgers!cbmvax!cbmehq!cbmger!peterk
From: peterk@cbmger.UUCP (Peter Kittel GERMANY)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Trouble with ADOS 1.3 and Fonts
Message-ID: <461@cbmger.UUCP>
Date: 1 Oct 90 13:28:33 GMT
References: <13387@wehi.dn.mu.oz> <17f70f12.ARN01888@swinjm.UUCP>
Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY)
Organization: Commodore Bueromaschinen GmbH, West Germany
Lines: 34