Chinese font can not be show correctly with JAVA application on FreeBSD

I ran into this problem as I installed the freemind.

After searching with Google, the following steps can solve the problem.
  1. Create a directory named "fallback" in JRE path
    # cd /usr/local/jdk1.6.0/jre/lib/fonts
    # mkdir fallback
  2. Link a TrueType that I wanted to the new directory
    # cd fallback/
    # ln -s /usr/local/lib/X11/fonts/TrueType/bsmi001p.ttf ./bsmi001p.ttf
  3. Restart the JAVA application
After restarting, the JAVA application will show chinese font properly.

ps. Many thanks for Tim's help.

Comments

Popular posts from this blog

How to show only month and year fields in android Date-picker?

How to construct a B+ tree with example

Conflict Serializability in database