home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17682 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  814 b 

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Newbie font/screen question
  5. References: <37971@cbmvax.commodore.com>
  6. Message-ID: <paulk.2vmr@terapin.com>
  7. Date: 21 Dec 92 20:01:02 PST
  8. Organization: BBS
  9. Lines: 16
  10.  
  11. > Indeed, the correct way is:
  12. >       if ( OpenDiskFont( ... ) )
  13. >       {
  14. >           if ( OpenScreen( ... ) )
  15. >           {
  16. >               ...
  17. >               CloseScreen( ... );
  18. >           }
  19. >           CloseFont( ... );
  20. >       }      
  21.  
  22. At some time in the past I found that calling OpenDiskFont() will
  23. always load from disk even if the font is already in memory.  So I
  24. call OpenDiskFont() only if OpenFont() fails.  Is this still
  25. necessary with the latest versions?
  26.