Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed these packages:

apt-get install xvfb xfonts-base xfonts-75dpi xfonts-100dpi firefox

But in my Firefox in Xvfb on Ubuntu Server, the Chinese characters look like:

screenshot

How to install proper fonts for my Xvfb?

EDIT: I have also installed xfonts-intl-chinese but it doesn't help.

share|improve this question
    
I'm also having this problem. I'm using selenium in this github.com/SeleniumHQ/docker-selenium/tree/master/… docker image. After installing xfonts-wqy, Chinese charactors still do not show correctly. – zjk Jan 8 at 6:22

Solved!

You need xfonts-wqy as well. (it's a open-source Chinese font)

sudo apt-get install xfonts-wqy

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.