Bits_of_Magic@cup.portal.com (09/05/90)
I am losing memory when I load a disk font. The first time I can understand,
since the system maintains the font in memory until it is asked to load
another one. But I lose 456 bytes EVERY time I execute the following
program (opening and closing of libraries deleted for clarity.) Any
ideas?
struct TextAttr fontattr = {"myfont.font",5,FS_NORMAL,FPF_PROPORTIONAL};
/* open graphics, intuition and diskfont libraries */
/* get disk font */
myfont = OpenDiskFont(&fontattr);
/* close disk font */
if (myfont != NULL)
CloseFont(myfont);
/* close libraries */
Nicky Robinson
<bits_of_magic@cup.portal.com>