Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] how could the droid back-end support non-western alphabet?

edited November 2013 in OpenSesame

The Chinese characters I typed when it is in the psycho back-end could be well shown when I run it, but not when in other three back-ends. Now I wonder how could I make it possible to see the Chinese characters I typed within droid back-end? How could I configure the opensesame system?

Comments

  • edited 9:19PM

    The default fonts don't contain Chinese characters. Many software packages fall back to a different font when characters are missing, which is why you often don't notice this. But the OpenSesame droid backend doesn't use a fallback mechanism, so you have to make sure to use a font that includes Chinese characters.

    The easiest way to do this is to add a font file with Chinese characters to the file pool and rename it to sans.tff. This way whenever you present text with the sans font, the sans.ttf from the file pool will be used. See for example this experiment, which uses the WenQuanYi Micro Hei font:

    See also:

    Cheers,
    Sebastiaan

  • edited 9:19PM

    You are right. But when I put another ttf file instead of sans.ttf with the same operation, it failed agin. I have tried mono.ttf and some other fonts that commenly used by Chinese characters. I am confused.

  • edited 9:19PM

    I have resolved this problem. Thanks a lot.

  • edited November 2013

    For the sake of users that might have the same problem in the future: could you describe what you have done to fix the problem?

    I take it that you did as Sebastiaan suggested, took a Chinese font file (e.g. 'cool_chinese_font.ttf'), changed it's name to 'sans.ttf', and then used the sans font in your experiment?

    Thanks!

Sign In or Register to comment.