https://bugs.winehq.org/show_bug.cgi?id=57238
--- Comment #12 from Artem S. Tashkinov aros@gmx.com --- (In reply to Hans Leidekker from comment #11)
Could Wine monitor such things and substitute files when necessary?
I don't think that belongs in Wine proper but it seems like a sensible thing to do for a Wine wrapper. I don't know if monitoring is necessary, just creating symlinks to various known fonts might be enough.
AFAIK Wine has wrappers for most Windows functions, so wouldn't it be just the case of
winAPI_fopen(file) { if (string(file) ~= "C:\windows\fonts*.ttf" && !file_exist(file) ) { fontname = strip ( string(file), "C:\windows\fonts"); if file_exists(strcat("/usr/share/fonts", fontname)) file=fopen(strcat("/usr/share/fonts", fontname)); } }
Sounds trivial to me and I'm sure something like that has already been done in Wine and used in many places.