[NTG-context] Re: Why is the fonts database not updated?

2023-07-07 Thread Thangalin
I've used the following without any troubles for a few years now:

$ cat ~/bin/fontcache
#!/usr/bin/env bash

fc-cache -fv
mtxrun --generate
mtxrun --script fonts --reload
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Why is the fonts database not updated?

2023-07-04 Thread Bruce Horrocks


> On 30 Jun 2023, at 10:45, Gerben Wierda  wrote:
> 
> I moved the fonts form my personal library to the system-wide library but 
> context keeps on keeping the font setup to look for the personal library
> 
> After I have run
> 
> mtxrun --script font --reload --force
> 
> and I compile my test file I see:
> 
> fonts   > defining > source file 
> '/Users/gerben/Library/Fonts/Ophian-Regular.otf' is not found
> fonts   > defining > using source file 
> '/Library/Fonts/Ophian-Regular.otf' due to cache mismatch
> fonts   > defining > source file 
> '/Users/gerben/Library/Fonts/Cabin-Regular.ttf' is not found
> fonts   > defining > using source file 
> '/Library/Fonts/Cabin-Regular.ttf' due to cache mismatch
> 
> Is there a better way to force a real reload of the font cache?

The command

  $ mtxrun --scripts cache --erase

should clear the whole cache.

—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___