Comment 41 for bug 1858636

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

Hey Ian, thanks for the updating the report. I don't have the answers to all your question and I'm unsure we have someone in desktop who is expert with fontconfig or fonts to reply to e.g the first one

I can reply to at least one though!

> * Can someone explain exactly what things the `dpkg-reconfigure fontcache` command calls to build the cache? is it sufficient to just call fc-cache from the fontconfig package or do we need to be doing something else too?

$ cat /var/lib/dpkg/info/fontconfig.postinst
...
  # Force regeneration of all fontconfig cache files.
  mkdir -p /var/cache/fontconfig
  printf "Regenerating fonts cache... "
  fc-cache -s -f -v 1>/var/log/fontconfig.log 2>&1 || (printf "failed.\nSee /var/log/fontconfig.log for more information.\n"; exit 1)
  printf "done.\n"

that's what the fontconfig package is doing