Dear Philip,

The suggestion by Akira-san resolves the problem :

It seems that I was wrong:

By experiments, I found that the renaming,
cachefile.NEW --> cachefile, almost always
fails if executed from the XeTeX binary even
in a user's writable directory.

Thus if you find a delay of time, run

fc-cache -v.

If messages
invalid cache file: ...
are shown, run

fc-cache -v

once more.

--- related function ---
FcBool
FcAtomicReplaceOrig (FcAtomic *atomic)
{
#ifdef _WIN32
   unlink ((const char *) atomic->file);
   /* fails always if executed from the XeTeX binary */
#endif
   if (rename ((char *) atomic->new, (char *) atomic->file) < 0)
   return FcFalse;
   return FcTrue;
}

Best,
Akira



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to