The gnome & amp; gtk * font configuration may vary from machine to machine. A configuration is suitable for me. It may not be suitable for others. The description of the software itself is often the most convincing, and the configuration is also the most effective. Here, we also provide a Firefox Font configuration reference in Ubuntu, which gives some hope to the font setting friends. MuchofMozilla 'sfontsandcolorsarecontrolle
The gnome & gtk * font configuration may vary from machine to machine. A configuration is suitable for me. It may not be suitable for others. The description of the software itself is often the most convincing, and the configuration is also the most effective. Here, we also provide a Firefox Font configuration reference in Ubuntu, which gives some hope to the font setting friends.
The official Firefox doc says:
Much of Mozilla's fonts and colors are controlled via CSS (Cascading Style Sheets ).
These are set in. css files in Mozilla's chrome directories, but the user can override them with two plain text files, called userContent.css and userChrome.css.
Below is a simple configuration.
1. Create *. css
$ Cd ~ /. Mozilla/firefox/*. default/chrome
$ Cp userChrome-example.css userChrome.css
$ Cp userContent-example.css (userContent.css)
2. Write content
1. Attach the lower part to the end of userchrome.css:
*{
Font-size: 9pt! Important;
Font-family:! Important;
}
Note: "Microsoft xx" is set by yourself. Correct font names are important. Enter fonts: // In the file browser to view the font attributes.
The wildcard above includes the display of bookmarks and tab fonts. If you are confused about this, try again.
2. Attach the lower part to the end of usercontent.css:
*{
Font-size: 9pt! Important;
Font-family:! Important;
}
Note: Same as above.
Obviously, this is the font setting of the webpage content.
3. Notes:
1) set the font type in the browser preference. The default value is enough. Please allow the page to select your own font, which is also the default. Adjust the minimum font size.
2) dpi of 1024x768 (gnome in the font setting details), preferably around 90. Adjust the font size of the gnome program interface. Dpi of other resolutions.
3) The wildcard character is not killed, and the diversity of the page is lost. For more information, see the official css custom help.