Davisor Chart takes full advantage of Java internationalization features, and is therefore immediately ready for multinational use. In particular, Davisor Chart supports locale sensitive text, number, time and date formatting, as well as international fonts and calendar systems.
The examples below demonstrate non-western text in chart labels and titles. In order to run properly, these particular examples expect, however, that a Japanese SimHei-font is available for the server running the demo, and that the local Arial font defines glyps for Arabic characters, respectively. If these assumptions are not met, the corresponding characters will not display correctly. Instead, they will most probably appear as empty rectangles. In order to fix this, proper fonts need to be installed in the server running the demo, or the font attributes in the examples changed.
With most Java virtual machines, adding new fonts to a Java environment is easy. For your convenience, the principles of how this is typically done in Windows and Linux environments are provided below. For more complete instructions, please refer to your Java virtual machine documentation, or the generic Java Internationalization documentation.
Most, if not all, Windows Java virtual machines can use Windows system fonts directly. For example, SimHei is one of the Windows default Japanese fonts, so installing any Windows Japanese support option should make that font available. International fonts for Windows are available also in many Microsoft products.
As with Windows, many Linux Java virtual machines can also use Linux system fonts directly, but they may also require editing some Java system configuration files first. Depending on the Linux distribution, installing new system fonts will also require different administration steps.
With TrueType fonts and the Sun and IBM JDK for Linux, the easiest method to install new Java fonts is to copy the corresponding TrueType files into the $JAVA_HOME/jre/lib/fonts/ directory. For example, the Windows SimHei.ttf file can also be installed this way. Fonts installed in this manner will not be available for the rest of the system, but in environments where there are no international fonts already available by default, this probably will not matter.
|
| A chart with Japanese font. |
|
| A chart with Arabic font. |