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
OTF
directory to/usr/share/fonts/
. I created a subdirectoryopentype/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:
No comments:
Post a Comment
Inline coding questions will not be answsered. Instead, ask on StackOverflow and put the link in the comment.