Learning Unicode must get the official website http://www.unicode.org/. The content is really much, but the main task of ME is to find the interval in which Chinese characters are located. Juji, ME first queries through the insertion character function of Word. Preliminary examination of the first Chinese characters should be "one", enough, the last seems to be "龥", I really don't recognize the pinyin ME, I really don't know what to read "Yue4".
Download CJK Unified Ideographs (5MB) in Unicode's official website, see if it is like this. Hey, this ME's Chinese character tester will not have embarrassing "?". After a long time, Chinese characters encoded in the Unicode encoding system, CJK Chinese characters were 0x4e00 to 0x9fa5, a total of 20902 Chinese characters. In the CJK impression, it seems to be China, Japan and South Korea. After all, the text is a bit interoperable, so we will make a discounted one to avoid wasting space.
Running on Motorola A388, very good. However, when the top of the Chinese characters, the whole Chinese characters are completely displayed. It is very good to give people very bad, as if there is a stuff suddenly falls from the sky. This problem is well resolved, and pull the coordinate array to pull a character height. Drawchar, write from -fontheight. After the modification, it is tested in Motorola J2ME Launchpad. Download to the phone, there is a problem, there is a blank in the lower left corner (the background color of the canvas is set to black)!
The problem has originally used the length of the coordinate number. Because the original routine only operates pixels within the screen range, the length of the array is Height, and then height is called directly at each required number length, but ME has lengthened the character to solve the character smooth and out. Hey, the contradiction appears, because each update is not complete. The blank width of the lower left corner is just the same as Fontheight.
Find a place where array length is found, and the Height fixed value is set to stars.length (), and the problem is solved.
Improper use of global variables leads to the frequency of errors or quite high, pay attention to! The key is that it is difficult to refer to this variable which places, it is best to replace it with the latest value, cut.