0

Wikipedia has changed its font-family for the Languages panel, and it doesn't render very well in Chrome. So I wanted to hard-code in the Custom.css with another font, but I haven't got success.

This is the line I added,

@font-face { font-family: 'Autonym', sans-serif ; font-style: normal; src: local('Arial'); }
fixer1234
  • 28,064

1 Answers1

0

Why would font-face work? Add a proper CSS rule editing the page Special:MyPage/common.js, like

$.webfonts.repository.languages.languageCode = ["system", "FontA", "FontB"];

See docs: https://www.mediawiki.org/wiki/Extension:Universal_Language_Selector#Alternate_ways_to_load_fonts

Example URL where to add the setting (for the wiki mediawiki.org; change to your domain): https://mediawiki.org/wiki/Special:MyPage/common.js

Nemo
  • 1,151