Game crashes on iOS when using Korean characters
Hi,
My game is localized to English, Korean, Chinese (traditional and simplified). When I switch to Korean in the iOS version of the game from English it will hardcrash/close the app. It works fine on Android, web and desktop versions of the game.
What is really strange is that if I change from English to Chinese, then go from Chinese to Korean (via the language select screen I have in-game), it will work fine. It will however crash the game when it next loads the app (as it saves the Korean preference).
I'm embedding the fonts in their own swf's and packaging them locally with the following code:
public class ChineseFontEmbed extends Sprite
{
[Embed(source='../../../../../../Fonts/msyhbd.ttc', fontName='ChineseDefault', fontWeight="bold", mimeType='application/x-font', embedAsCFF='false', unicodeRange='U+000a-U+007e, U+00A2-U+00A5, <lots of other characters specifically used by the game>, U+ff1f')]
public var ChineseDefault:Class;
}
public class KoreanFontEmbed extends Sprite
{
[Embed(source='../../../../../../Fonts/NanumGothic-Bold.ttf', fontName='KoreanDefault', fontWeight="bold", mimeType='application/x-font', embedAsCFF='false', unicodeRange='U+000a-U+007e, U+00A2-U+00A5, <lots of other characters specifically used by the game>, U+d79b')]
public var KoreanDefault:Class;
}
I'm using AIR22, I've been unable to test on AIR23/24 due other issues with those versions of the sdk.
I'm not using TTF textfields.
I'm using Flash CC to generate the swf's and building the IPA via the console on Windows.
This is the game on iOS (with Korean toggled off due to the crash)
https://itunes.apple.com/nz/app/terrapets/id507039696?mt=8
This is the same version built for Android and working with Korean on Android
Terrapets - Android Apps on Google Play
Any insights would be most welcome.
Cheers,
Steven.
