Moncader/SWFCrew — pull request #57 by kuu (2013-02-28 06:44:07+00:00)
Title: [Issue] Characters are displayed in the place where numbers should be.

[Issue]
Characters are displayed in the place where numbers should be.

[Cause]
EditText has the initial text as well as the information about whether the text is displayed as a glyph text or device text.
In case of glyph text, we need to look up the glyph data by character code.
So, if the EditText claims it is a glyph text, we stop the SJIS -> UCS conversion and use the SJIS character code as is, otherwise the glyph lookup fails.
However, in this case, the texts (score and elapsed time) are built dynamically by ActionScript and set to the EditText, they are essentially UCS.

[Fix]
Now we convert every SJIS characters to UCS.
This includes:
- InitialText in DefineEditText.
- String literals in DoAction(ActionPush).
- Characters in CodeTable in DefineFont.