Skip to Content

How to display asian characters

Printer-friendly versionSend to friendPDF version
Rookie

You may observe that some asian characters (or may be all of them) are badly displayed on your device once you have deployed your rich media application on it. The usual reason for this is that the system font that the application will use by default may not be appropriate to display such characters.

So you will have to specify a system font properly managing asian characters to solve such issue. Use the command "cmd://setFont" (see Streamezzo Commands Reference Guide). This allows specifying explicitly which system font should be used for a given Streamezzo font configuration.

The problem remains that the names of the device system fonts may be pretty hard to find out, and there is no friendly way to get them. Our tests on a chinese Nokia 6680 showed up that a font that can be used for such purpose is named"CombinedChinesePlain12". It seems that "MS Mincho" is appropriate too.

So what we suggest is to add a command like the following one in your scene :
<Action url="cmd://setFont?face=SYSTEM&amp;mapFace=CombinedChinesePlain12" startTime="NOW" />

You will have to add this line at the very beginning of your scene, so that it is run before you render any text. Once such command is processed, every SYSTEM font face used in your Text nodes will be mapped to the "CombinedChinesePlain12" device system font, instead of the default one.

To obtain the detailed specification of the command, please refer to Workbench Developer Help.

Share this