Closed Bug 1661532 Opened 4 years ago Closed 4 years ago

Bundled fonts are not recognized if they are also system-wide installed.

Categories

(Core :: Layout: Text and Fonts, defect, P2)

80 Branch
defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- wontfix
firefox81 --- wontfix
firefox82 --- fixed

People

(Reporter: diegocr, Assigned: jfkthame)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Summary: Bundled fonts are not recognized if there are also system-wide installed. → Bundled fonts are not recognized if they are also system-wide installed.

Set release status flags based on info from the regressing bug 1653987

I've pushed a tryserver job at https://treeherder.mozilla.org/#/jobs?repo=try&revision=8a57d43ede699a0df146814d869da32754b146ac with a patch that I think should resolve this (but have not yet been on my Windows machine to test it). If you have a chance to try this build and confirm if it fixes the problem, that'd be great - thanks.

Severity: -- → S2
Priority: -- → P2

I am not familiar with what you linked there, so perhaps Simon can give a hand or otherwise we can wait for you to get to a Windows machine :)

OK, I finally got around to testing this, by installing Twemoji Mozilla font locally on Windows, and confirmed that when font-visibility.level is set to 1, the Twemoji Mozilla font is no longer available (even though there's a copy bundled with the Firefox application), because the (suppressed) system-installed font "hides" it.

With the above patch, the issue no longer occurs: the bundled Twemoji Mozilla font takes precedence and remains available regardless of the font-visibility setting.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a32d70d9f2d Ensure bundled fonts that duplicate installed fonts will take precedence and remain visible even if visibility/RFP would block the installed version. r=jwatt
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

I'm having issues with my OS's font not being seen by Firefox when privacy.resistFingerprinting is set to true. Firefox falls back to DejaVu Sans which I think might be based on fontconfig defaults. This makes Firefox's chrome look out of place among my applications.

OS: Xubuntu 18.04 (GTK)
Firefox: 87.0

Setting font.system.whitelist to Cantarell (OS's UI font) solves this for me, but there has been a suggestion that placing the font in the Firefox fonts folder should make it accessible without whitelisting:

/usr/lib/firefox/fonts/
├── Cantarell-BoldOblique.otf
├── Cantarell-Bold.otf
├── Cantarell-Oblique.otf
├── Cantarell-Regular.otf
└── TwemojiMozilla.ttf

This however didn't result in the font being used for any chrome. Should it?

I can confirm the report by thehim still stands for latest 91.2 ESR.

Fonts manually put into firefox/fonts/ are ignored when privacy.resistFingerprinting=true

Depends on: 1745715
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: