On Sun, 2006-06-18 at 04:03 +0400, Evgeniy Stepanov wrote:
The purpose of this code is to generate a valid file name most closely resembling the original one. Just for humans. Fontconfig matches fonts based on their properties like family and weight, ignoring the file name.
Yes seems it reads all files in the directory when starting. That might be a reason not to have a big cache of unindexed font files as loading them all on startup could cause a noticeable delay.
Maybe it would be better to name them like 1.ttf, 2.ttf. After all, mplayer is not a tool for attachment extraction. In that case there is no need to keep old fonts, and we can use temporary files. No need for this portable filename
I don't understand why you say "In that case there is no need to keep old fonts" - how is the naming scheme for the files relevant to whether you want to keep them?