home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 531.lha / FontCacheX / FontCacheX.doc < prev    next >
Text File  |  1991-07-04  |  2KB  |  35 lines

  1. FontCacheX - a program that will cache the results of calls to
  2. the diskfont.library's AvailFonts() call, meaning that any program
  3. that shows you a list of fonts won't have to read it more than
  4. once (such as running "Font" under 2.0), and usually all programs
  5. will share the same resident cached font list.
  6.  
  7. What FontCacheX does is patch the AvailFonts() call and when
  8. the function is called, if the Flags are requesting Tags with the
  9. fonts, then it just calls the original AvailFonts.
  10.  
  11. Otherwise, it checks to see if these flags matches the fonts that
  12. it has cached.  If so, the calling program's buffer is filled with
  13. the fonts from the cache, and it returns immediately - if the fonts
  14. aren't already cached, then they get loaded and cached.
  15.  
  16. Adding fonts to FONTS: or adding new fonts to any font directory in
  17. FONTS: isn't noticed.  You'll have to send FontCacheX a Ctrl-D 
  18. break to get it to forget it's cache - you can do this from a CLI
  19. by typing STATUS, noticing which Process number FontCacheX is, and
  20. then typing "BREAK # D" where # is the process number listed.
  21.  
  22. To run FontCacheX, in your startup-sequence or user-startup, add the
  23. line "RUN >NIL: <NIL: FontCacheX" and forget about it.  
  24.  
  25. I've tested this with DPaint, the 2.0 Font program, The Ham-E Register
  26. Paint program, and a few other little utilities I had around - it worked
  27. flawlessly with all of them.  If it ever gives you a problem, please let
  28. me know about it.
  29.  
  30. FontCacheX is written by Steve Tibbett, and I can be reached on 
  31. American People/Link as STEVEX, on Bix as "s.tibbett", on Usenet
  32. at cognos!alzabo!omx!stevex, and on my BBS at 613-731-3419.
  33.  
  34. This program is placed in the Public Domain.
  35.