What is the purpose of fc-cache in fontconfig?

shri picture shri · Aug 31, 2015 · Viewed 9.3k times · Source

i went through the documentation of fontconfig and i could understand the purpose of fc-match and fc-list. I am not understanding what does fc-cache does? How does it help device to understand things related to fonts?

Could anyone explain what is the purpose of fc-cache in fontconfig?

thanks.

Answer

Assem picture Assem · Jan 16, 2016

fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig for their font handling.

And caching is used to improve performance by shortening data access times, reduce latency and improve input/output.