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 ;)


Solution 1:

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.

Solution 2:

The Mozilla Support Forum thread Web page font issues has 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