Skip to content
tp7ptr edited this page Jan 12, 2013 · 1 revision

Since parsing of fonts can easily get very slow, parsed data is cached.

Cache location: %AppData%/assfc/ on Windows and ~/.assfc/ on Linux.

All required data of all parsed fonts is saved there. Cache updates on every usage of script using the following algorithm:

  1. If cache file doesn't exist - all fonts get indexed
  2. All files that exist on disc but don't exist in cache (compared but absolute file path) considered added
  3. All files that exist only in cache considered removed
  4. All added files are parsed and added to cache

For performance reasons it is not recommended to change font directories too often (since it will cause re-indexing of some fonts).

Also since caching routine checks file existence every time, it is not recommended to add insane amount of fonts to cache. It is still pretty fast even on Windows, but might cause noticeable lag if your HDD access is too slow.

Clone this wiki locally