mirror of https://github.com/axmolengine/axmol.git
[iphone] support UTF8 Chinese chars
This commit is contained in:
parent
14a5470d72
commit
a0c50d3edb
|
@ -51,7 +51,7 @@ static void initWithString(const char *content, const char *fontName, float size
|
||||||
}
|
}
|
||||||
|
|
||||||
alignment = UITextAlignmentCenter;
|
alignment = UITextAlignmentCenter;
|
||||||
string = [[NSString alloc] initWithCString:content];
|
string = [[NSString alloc] initWithUTF8String:content];
|
||||||
name = @"Thonburi";
|
name = @"Thonburi";
|
||||||
dimensions = [string sizeWithFont:[UIFont fontWithName:name size:size]];
|
dimensions = [string sizeWithFont:[UIFont fontWithName:name size:size]];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue