Firefox: restore all default font settings

Recently I installed Firefox 40.0.3 on a new system. I copied my old user profile (created under an earlier version of FF) and so far everything works.

However, in my old profile, there are lots of custom font settings that doesn't make sense for the new system (changed font names, different display, hence different optimal font size for my eyes, and different locales). I'd like to remove all settings related to the fonts and use whatever should haven there by default had I not copied my old profile. For everything else in my user profile, I'd like to keep them.

Is there a quick method to do this, instead of reverting all font settings for all locales one by one?


Edit: for now, I've accepted my own answer, because that's what I've tried and what I have experience with. I'm still seeking the answer to the original question: How to programmatically, or automatically revert a certain selection of config options to their default values? In particular, how to restore all font settings? Feel free to discuss ;)

2

4 Answers

Well I ended up searching for the string font in about:config and reset all user-set options. It was a grind but I'm a cheap labor anyway ;)

But I'm sure there are better methods to do this. Perhaps someone with more experience on Firefox internal could enlighten me on how to do this programmatically.

2

The Mozilla Support Forum threadWeb page font issueshas this advice :

The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. Note: This will cause you to lose any Extensions and some Preferences.

  1. Click the menu button image1, click Help image2 and select Troubleshooting Information. A new tab containing your troubleshooting information should open.
  2. At the top right corner of the page, you should see a button that says "Reset Firefox" image3. Click on it.
  3. Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
  4. Firefox will open with all factory defaults applied.

image4

1

have you tried changing the default font settings in firefox

  1. Remove custom font files from your firefox user profile folder
  2. Go to "about:preferences#content"
  3. change Default font to "Times New Roman"
  4. change Size to "16"
  5. click on Advanced on use the following values
    • Fonts for : Latin
    • Proportional : Serif & Size : 16
    • Serif : Times New Roman
    • Sans Serif : Arial
    • Monospace : Courier New & Size :13
    • Minimum font size : 9
    • Fallback Text Encoding : Default for Current Locale
  6. Restart Firefox

if this still doesn't work - try resetting about:config preferences as suggested by user "Cong Ma"

Screenshot of Fonts & Colours setting in about:preferences#content

Screenshot of Advanced font settings in about:preferences#content

4

You may use MozBackup to do this. Backup all the needed things from the profile and then restore it from the backup.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like