Some characters are not rendered properly in the Tiger visualizer, how do I fix it?
- Keywords:
- tiger visualizer font
- Last updated by:
- Thomas Krause
Since the graph is rendered on the server and send as an image to the browser the Java installation on the server must be able to display the fonts you need.
The default JDK/JRE from Sun uses the Lucida font for general characters and some special fonts for Japanese and Korean. If you are using a recent Linux distribution (e.g. Ubuntu 9.10) the free OpenJDK might be a solution, since it uses the DejaVu fonts per default. These fonts can handle much more character ranges.
If you are stuck to the Sun JDK because you are using Windows or Ubuntu 8.04 (OpenJDK seems to be fully compliant to the JDK only from Ubuntu 9.04) here is a guidance to configure Java to use DejaVu as default font. These instruction were tested on Ubuntu 8.04.
1. Install DejaVu (all fonts)
2. edit the fontconfig.
3. add the following lines to the "Font File Names" section, adjust paths if necessary
filename.
filename.
filename.
filename.
filename.
filename.
filename.
filename.
filename.
filename.
filename.
filename.
4. Replace the following configuration entries (search for the configuration key, e.g. "serif.
serif.plain.
serif.bold.
serif.italic.
serif.bolditali
sansserif.
sansserif.
sansserif.
sansserif.
monospaced.
monospaced.
monospaced.
monospaced.
5. Restart any Java application that should use the new configuration.
Please note that this will change the behavior all Java applications on the system. There might be a possibility to add character range definitions like "monospaced.