Fonts
Fonts can be used to enhance the styling of your wiki.
Google Fonts
Google Fonts is a free resource containing over 1,400 fonts. To add a font to your wiki, simply add:
@import url('https://fonts.googleapis.com/css2?family=<your font>ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900 <specify the font weight and styling>&display=swap');
to the top of the CSS page (eg. MediaWiki:Common.css).
onlinewebfonts.com
onlinewebfonts.com is a much larger resource for fonts, containing over eight million fonts. To add a font to your wiki, simply add:
@font-face {font-family: <your font>; <Optional: specify font-weight (100 to 900) and style (normal or italic)> src: url("//db.onlinewebfonts.com/t/0123456789abcdef0123456789abcdef.eot"); src: url("//db.onlinewebfonts.com/t/0123456789abcdef0123456789abcdef.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/0123456789abcdef0123456789abcdef.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/0123456789abcdef0123456789abcdef.woff") format("woff"), url("//db.onlinewebfonts.com/t/0123456789abcdef0123456789abcdef.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/0123456789abcdef0123456789abcdef.svg#<your font>") format("svg"); }
replacing the placeholder text, to the top of the CSS page (eg. MediaWiki:Common.css).