[linux] fontconfig and it's cache files

Alexander Leidinger Alexander at Leidinger.net
Wed May 13 11:32:25 UTC 2009


Quoting Boris Samorodov <bsam at ipt.ru> (from Wed, 13 May 2009 11:22:32 +0400):

> On Wed, 13 May 2009 08:48:32 +0200 Alexander Leidinger wrote:
>> Quoting Boris Samorodov <bsam at ipt.ru> (from Tue, 12 May 2009  
>> 16:22:25 +0400):
>
>> > It seems to me that the best way to go is to populate
>> > $LINUXBASE/var/cache when installing linux fontconfig
>> > and remove it when deinstalling. As for -f10- linux
>> > ports we may use a native fontconfig cache files until
>> > new version starts to be incompatible.
>> >
>> > What do you think?
>
>> Running the linux fc-config is not a clean solution, because it will
>> not be re-run when a new font is installed.
>
> Yea, hence the question.
>
>> Unfortunately I have no better idea...
>
> Would it be good to create a default fc-cache files and install
> them with a port/package? We may add more fc-cache files upon
> users requests.

Isn't there only one cache file? It depends upon which fonts are  
installed. On one machine I have fonts which you will not find in  
ports (or for free at all, I think... they are very old and I got them  
in a commercial package). I don't think this is an option.

>> at least for F10 we would have the good behavior. In
>> the light of the upcomming 8.0 release, I would say go ahead with this
>> idea.
>
> This will work until the fonts cache database structure changes...

Yes.

> And what about users of 7.x which use F8 linux ports and won't be
> able to use F10 ports?

Did you test f10 on 7.x? I would say f8+ is not supported on 7.1 or  
less, for 7.2 I don't know the current status. Fallback: run fc-cache  
manually (we can not support everything, f4 until 7.x is EOL and f10  
for 8.x is already a lot).

>> I don't know if we should extend the fc-cache running in the font
>> ports to also run the linux one if present or not. This is maybe
>> something to discuss after 8.0-RELEASE is out the door.
>
> Well, me too don't have an elegant solution. :-(

This would at least be a working solution, and not counting the amount  
of work involved it is also the right solution. I think this is  
something for after 8.0.

Bye,
Alexander.

-- 
Uh-oh -- WHY am I suddenly thinking of a VENERABLE religious leader
frolicking on a FORT LAUDERDALE weekend?

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list