Output Chinese information directly under MTK

Source: Internet
Author: User

Today, I just want to draw some Chinese Information on the MTK screen. After all, I was just getting started with MTK. I didn't think of this as a problem when I developed WM. Now the problem is coming, when MTK outputs Chinese characters, it turns into garbled characters. After searching for keywords and reading some code, it writes an interface based on the 35 platform developed by itself.

Code

 Void drawchinesestring (kal_uint8 * s, 2010len, s32 X, s32 y, color C)
{
Kal_uint8 des [256] = {0 };

Mmi_assert (Len! = 0 );
Mmi_chset_text_to_ucs2 (DES, Len + 2, S );
Gui_move_text_cursor (x, y );
Gui_set_text_color (C );
Gui_print_text (ui_string_type) des );

Return;
}

To be called:

 Drawchinesestring (kal_uint8 *) "Target name", 8, X, Y, ui_color_black );

It is still quite troublesome. Next we need to study how to add the Input Method to the single-line input box. If it is depressing, we don't have to consider it in WM. Now we have to consider it in MTK.

I want to write a WP7 article whenever I have time. Well, I wrote it for the first time. Let's take a look.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.