Juliusz Chroboczek
2005-Nov-21 08:50 UTC
[Fontconfig] Re: Fontconfig performance question.
KD> Correct me, but the whole idea of the cache is to save it locally>> Think about font directories mounted over NFS.KD> we are not saving fonts. We are saving a data-structure dump KD> separaterly for each user in HIS home directory and by design it KD> should not be available to anyone. Think about home directories mounted over NFS, then. Juliusz
Around 14 o''clock on May 13, Krzysztof Dabrowski wrote:> We can just put a marker in the file header that will serve as OS > indicator and if the cache-file is from other os, fontconfig can simply > re-create it. It''s not a problem.Or permit both formats to co-exist, either within the same file or in separate files. I was thinking it might be nice to share the same file, but I''m less certain today. -keith
Krzysztof Dabrowski
2005-Nov-21 08:50 UTC
[Fontconfig] Re: Fontconfig performance question.
Dnia poniedzia?ek 12 maj 2003 11:48 am, Juliusz Chroboczek napisa?:> KD> Correct me, but the whole idea of the cache is to save it locally > > Think about font directories mounted over NFS.we are not saving fonts. We are saving a data-structure dump separaterly for each user in HIS home directory and by design it should not be available to anyone. Kris p.s. and i do not think about modyfying the configuration file and even current caches - i want something above that - full fontconfig configuration structure dumped do disk so we do not re-create it on every run.
Krzysztof Dabrowski
2005-Nov-21 08:50 UTC
[Fontconfig] Re: Fontconfig performance question.
Dnia wtorek 13 maj 2003 01:59 pm, Juliusz Chroboczek napisa?:> KD> Correct me, but the whole idea of the cache is to save it locally > > >> Think about font directories mounted over NFS. > > KD> we are not saving fonts. We are saving a data-structure dump > KD> separaterly for each user in HIS home directory and by design it > KD> should not be available to anyone. > > Think about home directories mounted over NFS, then. > > Juliuszwhat has NFS to do with the endianes? :) this could only be a problem if you mount your home dir on 2 different unixes and you expect them to have 100% compatible fontconfig implementation. We can just put a marker in the file header that will serve as OS indicator and if the cache-file is from other os, fontconfig can simply re-create it. It''s not a problem. Kris
On Tue, May 13, 2003 at 02:05:24PM +0200, Krzysztof Dabrowski wrote:> Dnia wtorek 13 maj 2003 01:59 pm, Juliusz Chroboczek napisa??: > > KD> Correct me, but the whole idea of the cache is to save it locally > > > > >> Think about font directories mounted over NFS. > > > > KD> we are not saving fonts. We are saving a data-structure dump > > KD> separaterly for each user in HIS home directory and by design it > > KD> should not be available to anyone. > > > > Think about home directories mounted over NFS, then. > > > > Juliusz > > what has NFS to do with the endianes? :) this could only be a problem if you > mount your home dir on 2 different unixes and you expect them to have 100% > compatible fontconfig implementation. We can just put a marker in the file > header that will serve as OS indicator and if the cache-file is from other > os, fontconfig can simply re-create it. It''s not a problem.Don''t assume that there will be only *one* set of applications needing to access the font cache file in the users home directory. Make it robust enough to handle the cache file in the NFS-mounted home directory on multiple systems running multiple applications at the *same* time. Environments with X terminals probably do this all the time. -- albert chin (china@thewrittenword.com)