What about improving the desktop ports consistency: task 1, the fonts

Mel Flynn rflynn at acsalaska.net
Tue Feb 28 15:06:38 UTC 2012


On 2/28/2012 15:15, Alberto Villa wrote:
> On Tuesday 28 February 2012 14:57:20 Mel Flynn wrote:
>> So the unexec is executed before the font is removed? The unexec 
> makes
>> sense if executed after the .ttf is removed.
> 
> I think it's executed *after* fonts removal.
> 
>> The cache should be updated
>> then and if a directory tree is used by multiple ports this should
>> effectively remove only the uninstalled font from the cache, while
>> preserving the other fonts. So the unexec should be there for this case:
>>
>> ./TTF/myport.ttf
>> ./TTF/otherport/otherport.ttf
> 
> I've tried running `fc-cache -sv` on an empty font directory, but the cache 
> wasn't updated (grepping /var/db/fontconfig for the file name returned a 
> result, and running `fc-cache -v` with no directories removed that matching 
> cache file), so I fail to see any effect of this invocation.

But what does fc-list give you? There's more then one way to delete
something, one of them being marking "as deleted". Bit swamped atm, but
I can do some testing in a few hours, including what the default
directory is for "fonts in $HOME".

-- 
Mel


More information about the freebsd-desktop mailing list