Hi,
I think I've some opinion on this ~
> However, storing cached information in what is ostensibly a read-only
> directory is "unfriendly" and violates the FSH guidelines. This data is
> just cached versions of data available from the font files themselves and
> so the FSH says it should live (somehow) in /var/cache.
Good move!
> Any directories not matching a configured prefix would map to themselves;
> this makes the existing configuration and cache files compatible.
How do you resolve any fonts which doesn't located under /usr/share/fonts ?
Some one like to put fonts under different mount points and for me, I put most of my
TTF under /usr/X11R6/lib/X11/fonts/local .
Is it possible to for this way :
1. Let's assume the caching directory is called FontCachePrefix/
2. Add one additional mapping table under the FontCachePrefix/
3. Such that, we lookup the cache for a specific directory by keeping the relation of
each cache file and its' corresponding font directory.
4. So that, we don't need a complicated sub-dir. tree under our FontCachePrefix/
5. The listing can be in binary to minmize the extrax cost for this additional table
(file).
6. Finally, for each font directory, we can put the cache as something like
"path-to.cache"
or simply "1.cache", "2.cache" etc.
> Does this seem like a good plan? Can anyone come up with a better way of
> moving the storage of fonts.cache into /var/cache?
Yes, personally, I don't like cache placed around my fonts directory : )
Also, this will make reonly /usr partition for practical.
But, "/var/cache/fonts" is already specified in the FHS, that, this directory is for
dynamically generated fonts, I quote it here :
================================================================
5.5.3 /var/cache/fonts : Locally-generated fonts (optional)
5.5.3.1 Purpose
The directory /var/cache/fonts should be used to store any dynamically-created
fonts.
In particular, all of the fonts which are automatically generated by mktexpk
must be
located in appropriately-named subdirectories of /var/cache/fonts.[footnote 31]
5.5.3.2 Specific Options
Other dynamically created fonts may also be placed in this tree, under
appropriately-named subdirectories of /var/cache/fonts.
================================================================
Hence, I think, cooperation with FHS is needed or, we simply use another prefix.
Though, I think /var/cache/fonts should be the better, as I like the style what
fontconfig do.
I hope that, the combination "ft + fc" can be adopted more widely.
Zenith Lau
_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts