Le Sun, Mar 20, 2022 at 06:06:52AM +0000, Yifei Zhan a écrit : > At the moment firefox won't show any colored emoji out of the box, > despite bundled with Twemoji, firefox is unable to fallback to it by > default. To force it, we can copy the font to a directory known by > fontconfig and firefox will use it: > > mkdir -p ~/.fonts/twemoji/ > # replace `firefox` with `firefox-esr` if you are using ESR > cp /usr/local/lib/firefox/fonts/TwemojiMozilla.ttf ~/.fonts/twemoji/ > rm -r /home/user/.cache/fontconfig/* > fc-cache -rv # Not strictly needed, just in case > > Then go to a page with emoji, you should be able to see all the emojis. > > e.g. in the browser section of > https://unicode.org/emoji/charts/full-emoji-list.html > > and `fc-match -s emoji` will return TwemojiMozilla as an usable font.
does the below diff help ? same can be applied to esr. note to the ones testing: https://unicode.org/emoji/charts/full-emoji-list.html#1f972 is a better link, otherwise you'll think that it's not working because the browser column is empty... diff --git a/Makefile b/Makefile index 58a9749..2734cfa 100644 --- a/Makefile +++ b/Makefile @@ -82,6 +82,9 @@ post-install: ${SUBST_DATA} ${WRKSRC}/taskcluster/docker/firefox-snap/${MOZILLA_PROJECT}.desktop \ ${PREFIX}/share/applications/${MOZILLA_PROJECT}.desktop + ${INSTALL_DATA_DIR} ${PREFIX}/share/fonts/ + mv ${PREFIX}/lib/${MOZILLA_PROJECT}/fonts ${PREFIX}/share/fonts/${MOZILLA_PROJECT} + # install icon for desktop file ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/ ${INSTALL_DATA} ${PREFIX}/lib/${MOZILLA_PROJECT}/browser/chrome/icons/default/default128.png \ diff --git a/pkg/PLIST b/pkg/PLIST index 3ec0d67..ae9f36b 100644 --- a/pkg/PLIST +++ b/pkg/PLIST @@ -61,8 +61,6 @@ lib/${MOZILLA_PROJECT}/distribution/ lib/${MOZILLA_PROJECT}/distribution/distribution.ini @bin lib/${MOZILLA_PROJECT}/${MOZILLA_PROJECT} @bin lib/${MOZILLA_PROJECT}/${MOZILLA_PROJECT}-bin -lib/${MOZILLA_PROJECT}/fonts/ -lib/${MOZILLA_PROJECT}/fonts/TwemojiMozilla.ttf lib/${MOZILLA_PROJECT}/gmp-clearkey/ lib/${MOZILLA_PROJECT}/gmp-clearkey/0.1/ @lib lib/${MOZILLA_PROJECT}/gmp-clearkey/0.1/libclearkey.so.${LIBclearkey_VERSION} @@ -82,6 +80,9 @@ lib/${MOZILLA_PROJECT}/removed-files @man man/man1/${MOZILLA_PROJECT}.1 share/applications/${MOZILLA_PROJECT}.desktop share/doc/pkg-readmes/${PKGSTEM} +share/fonts/ +@fontdir share/fonts/${MOZILLA_PROJECT}/ +share/fonts/${MOZILLA_PROJECT}/TwemojiMozilla.ttf share/pixmaps/ share/pixmaps/${MOZILLA_PROJECT}.png @tag update-desktop-database
