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

  1. Path: sparky!uunet!gatech!psuvax1!rutgers!cbmvax!andy
  2. From: andy@cbmvax.commodore.com (Andy Finkel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Newbie font/screen question
  5. Message-ID: <38110@cbmvax.commodore.com>
  6. Date: 22 Dec 92 15:01:43 GMT
  7. References: <37971@cbmvax.commodore.com> <paulk.2vmr@terapin.com>
  8. Reply-To: andy@cbmvax.commodore.com (Andy Finkel)
  9. Organization: Flying Cat, Inc.
  10. Lines: 39
  11.  
  12. In article <paulk.2vmr@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
  13. >> Indeed, the correct way is:
  14. >> 
  15. >>       if ( OpenDiskFont( ... ) )
  16. >>       {
  17. >>           if ( OpenScreen( ... ) )
  18. >>           {
  19. >>               ...
  20. >>               CloseScreen( ... );
  21. >>           }
  22. >>           CloseFont( ... );
  23. >>       }      
  24. >At some time in the past I found that calling OpenDiskFont() will
  25. >always load from disk even if the font is already in memory.  So I
  26. >call OpenDiskFont() only if OpenFont() fails.  Is this still
  27. >necessary with the latest versions?
  28.  
  29. When you call OpenDiskFont, it looks at the fonts currently loaded
  30. into ram, to decide if any of them is a close enough match to what
  31. you are asking for to be used.  Before 2.0, OpenDiskFont was picky
  32. about what constituted a match.  Very picky.  Unbelievably picky.
  33. So picky, in fact, that it would almost never decide that what you had
  34. in ram was acceptable. Under 2.0, a more rational scheme 
  35. was adopted that will result in the ram copy of  font you've previously 
  36. OpenDiskFonted being found in ram by a subsequent OpenDiskFont.
  37.  
  38. Occasionally you may still want to do an OpenFont first;  this allows
  39. you to use your own judgement about what constitutes an acceptable
  40. match.  For many purposes, however, this is now unnecessary.
  41.  
  42.             andy
  43. -- 
  44. andy finkel        andy@cbmvax.commodore.com
  45.  
  46. "Unix is the Operating System of the future, and always will be."
  47.  
  48. Any expressed opinions are mine; but feel free to share.
  49. I disclaim all responsibilities, all shapes, all sizes, all colors.
  50.