On Sat, 7 Sep 2002 13:13:45 +0800 Zenith Lau <[EMAIL PROTECTED]> wrote:
> For the "configurable prefix mapping", how do it exists? > Also it is permissable that, there are many "<dir>" in the fonts.conf. > Is it possible to store the mapping as properties of the "<dir>" elements? I am concerned that without doing something like this, adding a font directory would require modifying two files instead of one (the fonts.conf to add the <dir> and the font mapping table file) I think a better solution would be to think of some kind of automatic mapping generation, that requires nothing from a user except to specify an extra directory in the fonts.conf Would it be possible to do something as simple as, number each of the dirs from fonts.conf, using their order of appearance (ie, first one specified in the file is 0, second is 1, etc etc) and just create dirs /var/cache/fonts/0.cache/ /var/cache/fonts/1.cache/ /var/cache/fonts/2.cache/ etc etc under each cache directory, would be the same directory hierarchy as the directory they are supposed to be caching for. I'm not sure what happens when the cache needs to be rebuilt, (i.e. how fontconfig knows when whats in the directory doesn't match whats in the cache, but i'm assuming this is already dealt with since it is a problem regardless of where the cache files are put) ken _______________________________________________ Fonts mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/fonts
