[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in Chromium (and non-snap browsers too)

2020-10-27 Thread Daniel van Vugt
** Changed in: snapd (Ubuntu)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in Chromium (and non-snap browsers too)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in Chromium (and non-snap browsers too)

2020-10-26 Thread Marius Gedminas
Feels fixed to me too!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in Chromium (and non-snap browsers too)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in Chromium (and non-snap browsers too)

2020-10-26 Thread Daniel van Vugt
Feels fixed to me. If the bug was still present I would have seen it
every week, but I haven't for months.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in Chromium (and non-snap browsers too)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in Chromium (and non-snap browsers too)

2020-10-26 Thread Ian Johnson
The mentioned fix has been released for some time in stable snapd now,
are folks still seeing invalid caches created by snapd when any snap
refreshes?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in Chromium (and non-snap browsers too)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in Chromium (and non-snap browsers too)

2020-07-29 Thread Daniel van Vugt
** Summary changed:

- snapd generates incomplete fontconfig caches, result in emoji rendering issue 
in chromium
+ snapd generates incomplete fontconfig caches, result in emoji rendering issue 
in Chromium (and non-snap browsers too)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in Chromium (and non-snap browsers too)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-26 Thread Sebastien Bacher
@mvo built a snap from the PR, wiping the cache and installing it gave
me a working cache listing the emoji font so it seems to resolve the
issue

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-25 Thread Ken VanDine
For reference, this PR might fix it. https://github.com/snapcore/fc-
cache-static-builder/pull/2/files

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-25 Thread James Henstridge
I've just been reading through the code used to build the bin/fc-
cache-v6 and bin/fc-cache-v7 binaries in the core snap:

https://github.com/snapcore/fc-cache-static-builder

I think I understand what the problem is: while it is rebuilding copies
of xenial's and bionic's fontconfig tools that statically link to
libfontconfig, it's using the xenial version of libfreetype2 for both.

I suspect that this old freetype version does not understand all the
features of the font (e.g. the scalable colour emoji), so the generated
cache also misses them.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-16 Thread Sebastien Bacher
(closing the chromium part since it's not an issue with that component)

** Changed in: chromium-browser (Ubuntu)
   Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-16 Thread Sebastien Bacher
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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-16 Thread Ian Johnson
Unfortunately we do not have a clear solution to this yet, so I have
unassigned myself from the snapd task and we need more help before we
can continue on this. Although, we have a few options as I detail here:
https://github.com/snapcore/snapd/pull/8856#issuecomment-644784642

I'm not sure what the best solution is, but definitely this will need
some guidance from the desktop team or others more knowledgable about
fonts about how to proceed here. Some questions I have include:

* Can someone explain the difference between fonts-noto-color-emoji and 
fonts-kiloji to try and understand why one shows up and the other doesn't with 
our current fontcache mechanism in snapd? 
* 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?
* Would it be possible for the fontcache to be run from inside confinement? 
I.e. what set of directories from the host would the fontcache binary from the 
fontconfig package need to see in order to build a fontcache?
* If we had to ship fontconfig in the base snaps, is it possible for us to just 
ship the fontconfig binary like we do today in the snapd snap, or do we really 
need the full package in order to have full compatibility with all fonts in 
Ubuntu?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-16 Thread Ian Johnson
** Changed in: snapd (Ubuntu)
 Assignee: Ian Johnson (anonymouse67) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-12 Thread Ian Johnson
Also just to clarify, we will regenerate fontconfig cache's on any snap
refresh/install during the link-snap task.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-12 Thread Ian Johnson
I can confirm I see the bug with seb128's reproducer. First I will
propose a spread test which demonstrates the issue so we don't see
regressions on this front, but also it's very curious to me that this
specific font:

fonts-noto-color-emoji

does not show up in the cache we generate but this font:

fonts-kiloji

do show up in the cache we generate. The spread test we have for this
functionality was using the latter so we didn't see this bug til now.

** Changed in: snapd (Ubuntu)
   Status: New => Confirmed

** Changed in: snapd (Ubuntu)
 Assignee: (unassigned) => Ian Johnson (anonymouse67)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-12 Thread Sebastien Bacher
Confirmed by doing those steps on a focal system

($ sudo apt install fonts-noto-color-emoji
if you don't have it installed)

$ fc-cat /var/cache/fontconfig/* | grep NotoColorE
there is a result listed

"NotoColorEmoji.ttf" 0 "Noto Color
Emoji:familylang=en:style=Regular:stylelang=en:fullname=Noto Color ...

$ sudo rm -rf /var/cache/fontconfig/
$ sudo snap refresh --edge core
(there is probably a smarter way to trigger a fontconfig cache refresh from 
snapd but that did it)

$ fc-cat /var/cache/fontconfig/* | grep NotoColorE
-> not NotoColorEmoji.ttf result anymore

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1858636] Re: snapd generates incomplete fontconfig caches, result in emoji rendering issue in chromium

2020-06-12 Thread Sebastien Bacher
** Tags added: rls-ff-incoming

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1858636

Title:
  snapd generates incomplete fontconfig caches, result in emoji
  rendering issue in chromium

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1858636/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs