Displaying Chinese Characters

  • Originally we used the NetDCU10 in one of our products. There we implemented Chinese Language Output, which works fine (WinCE). Now we had to replace the NetDCU10 with NetDCU14, because the NetDCU10 is obsolete. Unfortunately, we discovered now that Chinese Language Output does not work anymore on the NetDCU14. We use the following procedure:


    reg open "\System\Explorer\Shell Folders"
    reg set value Fonts string "\FFSDISK\Fonts"


    Copy "simsun_2_60.ttc" to the specified folder.


    In the Visual C++ project we use Wide-Characters and SimSun as font.


    On the NetDCU14 I tried using


    XIPV210_CE6Core_130605.bin
    XIPV210_CE6Core_CF2_130715.bin


    but no difference.


    We need a solution for this problem as soon as possible, because we have devices ready to be delivered to China this week, but using the Chinese Language File does not work anymore.
    Please assist.

  • Hello,


    i will check the facts you discribed. Is the explorer running?
    You can also use OS function "AddFontResource(_T("\\ffsdisk\\simsun_2_60.ttc"))" for font registering. Does this work?

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,


    seems to work on my system (130715). I use registry and attached tool for register a ttc file.
    Any news?

    Files

    • FontView.zip

      (45.47 kB, downloaded 185 times, last: )

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • I used the FontView tool on my NetDCU14 and it detects and displays the SimSun font properly. It shows
    @nSimSun
    @SimSun
    NSimSun
    SimSun


    But using the same Software as on the NetDCU10, the Chinese Language is not displayed properly.
    Up to now we used the NetDCU10 SDK and the Software runs properly (except Chinese) on the NetDCU14. Today I installed the NetDCU14 SDK and I builded our Software using "FSS5PV210_CE6" as Platform. But it makes no difference.


    In our code we use the following:


    HFONT hFntSys = (HFONT)GetStockObject(SYSTEM_FONT);
    LOGFONT lf[2];
    GetObject(hFntSys, sizeof(LOGFONT), &lf[0]);


    lf[0].lfCharSet = ANSI_CHARSET;
    lf[0].lfPitchAndFamily = FF_DONTCARE | DEFAULT_PITCH;
    wcscpy_s(lf[0].lfFaceName, 7, L"Tahoma");


    LOGFONT lfZH = lf[0];
    lfZH.lfQuality = CLEARTYPE_COMPAT_QUALITY;
    lfZH.lfCharSet = ANSI_CHARSET;
    wcscpy_s(lfZH.lfFaceName, 7, L"SimSun");


    lf[1] = lfZH;


    lf[1].lfHeight = -14;
    lf[i1.lfWeight = FW_NORMAL;
    fnt10[1].CreateFontIndirect(&lf[1]);


    and then we use something like


    var.SetFont(&fnt10[i], false);


    Any suggestions? Do you have any Source Code which uses Visual C++ and MFC to display Chinese Language?

  • Hello,


    we have two samples which you can easy port to pv210:
    http://www.forum.fs-net.de/viewtopic.php?f=4&t=278
    http://www.forum.fs-net.de/viewtopic.php?f=4&t=567



    The used SDK has no influence, i think. You may debug your application and evaluate return values and error codes to locate the problem. Basically the NetDCU14 WCE System is able to show the chinese fonts as we can see from the font view tool.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Finally, I found the solution:


    In the NetDCU10 we used


    lfZH.lfCharSet = ANSI_CHARSET;


    and it worked, although in fact it is wrong. I changed the Code to


    lfZH.lfCharSet = GB2312_CHARSET;


    and now it works properly on both NetDCU10 and NetDCU14.

  • Hello,
    thanks for your answer. It is really interesting and strange. I never take care about this parameter!

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.