Skip to content
Snippets Groups Projects
Commit 7e0cd021 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use UTF8 encoding

parent da6fa544
No related branches found
No related tags found
No related merge requests found
...@@ -381,7 +381,7 @@ void getBitmap(void *self, const char *text, int textsize, unsigned char **map, ...@@ -381,7 +381,7 @@ void getBitmap(void *self, const char *text, int textsize, unsigned char **map,
{ {
UILabel *lbl = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 1024, 7*textsize/6)]; UILabel *lbl = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 1024, 7*textsize/6)];
lbl.font = [UIFont systemFontOfSize:textsize]; lbl.font = [UIFont systemFontOfSize:textsize];
[lbl setText:[NSString stringWithCString:text encoding:[NSString defaultCStringEncoding]]]; [lbl setText:[NSString stringWithCString:text encoding:NSUTF8StringEncoding]];
[lbl setBackgroundColor:[UIColor clearColor]]; [lbl setBackgroundColor:[UIColor clearColor]];
CGSize lblSize = [[lbl text] sizeWithAttributes:@{NSFontAttributeName:[lbl font]}]; CGSize lblSize = [[lbl text] sizeWithAttributes:@{NSFontAttributeName:[lbl font]}];
*realWidth = lblSize.width; *realWidth = lblSize.width;
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.12</string> <string>1.1.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0.12</string> <string>1.1.0</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIFileSharingEnabled</key> <key>UIFileSharingEnabled</key>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment