Ubuntu supports Chinese out of the box, kind of:
See those rectangles? Some characters are not rendered, but enough are, so I left it like that for months. But it was starting to annoying me, and I finally looked into it. Turned out some fonts are missing. I installed
ttf-arphic-ukai, which got rid of the rectangles, but I didn't like the way it looked.
ttf-arphic-uming was not satisfactory either. As I agonized over which of the two to pick, I remembered that Google and Adobe announced a Pan-CJK font a while ago. Here is how to install it on Ubuntu:
- Download the zip file from the Adboe github page.
- Unzip it to a temporary directory.
- Copy the
/usr/share/fonts/. I created a subdirectory
opentype/source-han-sans, but you can put them anywhere you want.
Restart your browser, and voilà, all the characters are rendered in a beautiful font: