About Store Forum Documentation Contact



Post Reply 
Chinese character problem
Author Message
MrPi Offline
Member

Post: #16
RE: Chinese character problem
I have done all that. This really looks like a bug to me. Otherwise the font wouldn't try to allocate that much memory. As explained before, it climbed up to 300MB, where it then hit the maximum available on the phone. The entire app on Window or Mac allocated only 175MB. I have created a test project for you to test with on iOS and uploaded it here:
http://rapidshare.com/share/0DC0C5A4113C...3084131701

Also, regarding the crash, attached is a report. This is unrelated to any project. It happens in Esenthel Editor 2 when you right click and then try to add a new font.


Attached File(s)
.zip  Crash Report.zip (Size: 14.46 KB / Downloads: 1)
(This post was last modified: 12-09-2013 12:23 AM by MrPi.)
12-09-2013 12:19 AM
Find all posts by this user Quote this message in a reply
yasei_no_otoko Offline
Member

Post: #17
RE: Chinese character problem
Hello, Since I also have a question about Japanese fonts, please make a question ask here.

Would you set to a Unicode font(include Chinese and Japanese etc.) of code editor like the Internet browser?
This is very inconvenient although the display in-game is possible at copy & paste. wink

When I wrote the report which introduces Esenthel for Japanese yesterday, the number of displays recorded 1000View/12hours. lol

http://togetter.com/li/601135

Many of Japanese programmers dislike garbled characters.
Please change the font of code editor in the near future.
Then, probably, the Japanese programmer who is looking for engines other than Unity also gets interested in Esenthel Engine.grin

Although Unity is extremely popular in Japan, since it is expensive, the indie developer is pressed.smile
12-11-2013 04:06 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #18
RE: Chinese character problem
Hi yasei_no_otoko!

Welcome to the forum, and thanks for spreading the word about Esenthel! smile

Thanks for your feedback! I'll add support for custom fonts (including Chinese/Japanese) to the roadmap in the nearest future!
http://www.esenthel.com/community/showth...p?tid=1507

Thanks again smile
12-11-2013 04:50 AM
Find all posts by this user Quote this message in a reply
yasei_no_otoko Offline
Member

Post: #19
RE: Chinese character problem
Thank you for the quick reply!

I tell everybody Japanese that Japanese fonts can be used by a near future editor. grin
12-11-2013 05:19 AM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #20
RE: Chinese character problem
I hope you saw my crash report and the test project. This is a real showstopper for us with a chinese build on iPhone. It just can't handle the font.
12-11-2013 10:40 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #21
RE: Chinese character problem
Thank you for providing the crash report, although it doesn't crash on my Mac, I've added some extra thread-safety around some system calls, please let me know if this helps (for next release).

I have seen you're using 100MB font, which is kind of an overkill. Please see my previous posts, on OpenGL ES expect the font to get 2x bigger due to lack of texture format support. So you're getting at least 200MB usage just from the font.
I recommend: decrease font size, set mip maps to 1, decrease shadow blurriness (this also decreases the size)
Also: Next release of the engine may generate slightly smaller font sizes.
12-14-2013 10:36 PM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #22
RE: Chinese character problem
Thanks for the recommendations. But somehow 2x bigger is not quite right, as it allocated over 300 MB when it hit the cap on the device, of which at least 270 was for the font.
However, I've reduced the disk size of the font down to around 51MB and will test it together with the next engine update.
12-15-2013 11:45 AM
Find all posts by this user Quote this message in a reply
khces Offline
Member

Post: #23
RE: Chinese character problem
hi!
I also need a code editor supporting the Korean
12-17-2013 06:09 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #24
RE: Chinese character problem
Hi,

I'm working on adding support for that right now, could anyone confirm that these are correct ranges for modern Japanese/Korean characters?

Code:
case JP:
      {
         // ranges taken from: http://en.wikipedia.org/wiki/Japanese_writing_system
         Str s; s.reserve(0xFFFF);
         for(Int i=0x4E00; i<=0x9FBF; i++)s+=Char(i); // Kanji
         for(Int i=0x3040; i<=0x309F; i++)s+=Char(i); // Hiragana
         for(Int i=0x30A0; i<=0x30FF; i++)s+=Char(i); // Katakana
         s+=L'。';
         return s;
      }
      
      case KO:
      {
         // ranges taken from: http://en.wikipedia.org/wiki/Hangul
         Str s; s.reserve(0xFFFF);
         for(Int i=0xAC00; i<=0xD7AF; i++)s+=Char(i);
         for(Int i=0x1100; i<=0x11FF; i++)s+=Char(i);
         for(Int i=0x3130; i<=0x318F; i++)s+=Char(i);
         for(Int i=0x3200; i<=0x32FF; i++)s+=Char(i);
         for(Int i=0xA960; i<=0xA97F; i++)s+=Char(i);
         for(Int i=0xD7B0; i<=0xD7FF; i++)s+=Char(i);
         for(Int i=0xFF00; i<=0xFFEF; i++)s+=Char(i);
         return s;
      }
Thank you
01-30-2014 12:54 AM
Find all posts by this user Quote this message in a reply
yasei_no_otoko Offline
Member

Post: #25
RE: Chinese character problem
@Esenthel
Please add CJK symbols and punctuation marks when Chinese/Japanese/Korean.
Contain symbols commonly used in CJK.

U+3000-303F
From: http://www.unicode.org/charts/PDF/U3000.pdf

Otherwise JP would be okay as far as I know, thank you!grin
01-30-2014 02:25 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #26
RE: Chinese character problem
Ok, thanks, I'll add this smile
01-30-2014 02:37 AM
Find all posts by this user Quote this message in a reply
Post Reply