First add the following to the top of MediaWiki:Wikia.css on your wiki:
@import "/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css";
Then add the following to MediaWiki:Common.css:
html body { font-family: "YourFontFamily"; }
Keep in mind that the font that appears may differ based on operating systems.
Does it look like this?
Sorry, I was unclear: it should be the font families themselves that are in quotes:
html body { font-family: "Miccrosoft YaHei", "SimHei"; }
Yes. You could try emptying your browser cache (instructions are on the top of both Common and Wikia.css).
Edit: Also, your import in Wikia.css is at the bottom. It should be at the top of Wikia.css, before anything else.
Cool, thank you so much!! :D
You're welcome! Just one final question: are you sure your font is spelled "Miccrosoft YaHei"
? Isn't it just Microsoft?
Yes, it named as "Microsoft YaHei". I wanna use it to change the Chinese font. You know Chinese words contain a lot of strokes, and the original one causes them a bit ugly, so I decided to change the font family into this.