Bug 251246 - www/firefox-esr: Doesn't update fontconfig for /usr/local/lib/firefox/fonts
Summary: www/firefox-esr: Doesn't update fontconfig for /usr/local/lib/firefox/fonts
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-18 23:38 UTC by Duane
Modified: 2023-06-05 08:12 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duane 2020-11-18 23:38:31 UTC
Firefox comes with the Twemoji Mozilla font in /usr/local/lib/firefox/fonts/TwemojiMozilla.ttf but this isn't added to the fontconfig data (through /usr/local/etc/fonts/conf.d).  This directory should be configured so that emoji render correctly.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-04-23 09:45:25 UTC
(In reply to Duane from comment #0)

Reproducible with 102.10.0,1 on FreeBSD 13.2-RELEASE?
Comment 2 Tatsuki Makino 2023-06-05 08:12:36 UTC
🤔 A workaround is to write the following in ~/.config/fontconfig/fonts.conf

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/usr/local/lib/firefox/fonts</dir>
</fontconfig>

However, if we need a font that looks the same, installing twemoji-color-font-ttf (x11-fonts/twemoji-color-font-ttf) is an alternative.
There seems to be a problem with /usr/local/etc/fonts/conf.avail/{45,60}-generic.conf of fontconfig(?), and if multiple emoji fonts are installed, an unintended font may be used. 
In my environment, the fonts were used precisely as intended, neither in chromium nor firefox, but in seamonkey-2.49.4_27🤣