I Wonder Where The Fonts Records Are Stored
I've been using new fonts to customize my firefox, but I found that the fonts I installed won't show up in the dropdown menu in preferences, I have to create a new profile to let the new ones do.
I don't want to change my profiles from time to time, so I turned to userContent.css, but I found it either cannot cover enough contents, or cover too much, causing some icons to break.
So the only way to change font for me is to find a way to let the newly installed fonts to show up properly in my current profile, but no matter I restart my browser or my computer they don't. The fonts I have must be read at the time I create a profile, and I guess the list is stored in either somewhere in my profile or under the firefox program folder.
I made every effort to search for it but failed, all I know now is it's not in any text file under profile folder, I wonder if anyone can help me with locating the list of fonts. My firefox version is 84.0.2 on MacOS Catalina 10.15.7.
Valgt løsning
Thank you for your reply, but after I tried your way of reducing sandbox level to either 0 or 1, restart browser then my Mac, it still don't work. However I managed to solve it myself.
As I'm not very sure what you mean by reset the pref, so I went through some tests, and found my problem has something to do with the "privacy.resistFingerprinting = true" setting in about:config, when this value is true, I can't find any fonts that are manually installed.
I'm sorry I didn't read the docs mozilla provides carefully before enabling this feature, it is said in Firefox's protection against fingerprinting , "Not all fonts installed on your computer are available to webpages".
My conclusion is, firefox does read fonts list no matter how, but it's very possible that it only reads the fonts list I have in /System/Library/Fonts when the fingerprinting thing is on.
In case anyone have the same problem, here's some solutions. First, of course is turning off resistfingerprinting. Second, is to install fonts in your system font folder so firefox can read it. Third, is to use a userContent.css with css @font-face feature to load the local fonts manually.
The second might work the best. Recommended for windows and linux users, not for MacOS users since it requires the disable of SIP.
Læs dette svar i sammenhæng 👍 0Alle svar (2)
When fonts can't be accessed and used on Mac then this is possibly a sandbox issue.
You can check for sandbox security issues when Firefox has a problem to access fonts installed locally.
You can set this pref to 2 or 1 on the about:config page to reduce the sandbox security level.
- security.sandbox.content.level = 1
- close and restart Firefox to make the change effective.
If '1' still doesn't have effect then try '0' to disable the sandbox.
If this didn't work then undo/reverse the change and reset the pref via the right-click context menu to the default value.
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.
Valgt løsning
Thank you for your reply, but after I tried your way of reducing sandbox level to either 0 or 1, restart browser then my Mac, it still don't work. However I managed to solve it myself.
As I'm not very sure what you mean by reset the pref, so I went through some tests, and found my problem has something to do with the "privacy.resistFingerprinting = true" setting in about:config, when this value is true, I can't find any fonts that are manually installed.
I'm sorry I didn't read the docs mozilla provides carefully before enabling this feature, it is said in Firefox's protection against fingerprinting , "Not all fonts installed on your computer are available to webpages".
My conclusion is, firefox does read fonts list no matter how, but it's very possible that it only reads the fonts list I have in /System/Library/Fonts when the fingerprinting thing is on.
In case anyone have the same problem, here's some solutions. First, of course is turning off resistfingerprinting. Second, is to install fonts in your system font folder so firefox can read it. Third, is to use a userContent.css with css @font-face feature to load the local fonts manually.
The second might work the best. Recommended for windows and linux users, not for MacOS users since it requires the disable of SIP.
Ændret af iridescentLP den