Results 1 to 2 of 2
Discuss Any one can tell how to use CGContextShowTextAtPoint to draw none english characters? at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; When i use CGContextShowTextAtPoint to draw none english characters,such as Chinese,it shows blocks on my ...
  1. #1
    Newbie Array

    Join Date
    Jan 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Any one can tell how to use CGContextShowTextAtPoint to draw none english characters?

    When i use CGContextShowTextAtPoint to draw none english characters,such as Chinese,it shows blocks on my iPhone.
    Code:
    CGContextRef context;
    context = UICurrentContext();
      CGContextShowTextAtPoint (context, 40, 50, [NSString stringWithUTF8String:@"中国"], 10); 
    
      CGContextShowTextAtPoint (context, 100, 100, [NSString stringWithUTF8String:"\xe4\xb8\xad\xe6\x96\x87"], 10);
    Any one can tell me how to solve it?
    Thanks in advance!



  2. #2
    Professional Array

    Join Date
    Jul 2007
    Posts
    69
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    i dont know if its the optimal solution but you can try and draw glyphs

 

 

Similar Threads

  1. Replies: 0
    Last Post: 02-22-2008, 03:17 PM
  2. [SSH] Can't type more than three characters
    By Cacicia in forum iPhone "2G" (Rev. 1)
    Replies: 3
    Last Post: 11-25-2007, 04:41 PM
  3. Replies: 1
    Last Post: 10-09-2007, 12:07 AM
  4. sms with more than 160 characters
    By Phylar in forum General
    Replies: 5
    Last Post: 09-14-2007, 09:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 05:16 AM.
twitter, follow us!