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