wince UI应用程序日语看起来像中文

发布于 2024-12-19 01:19:54 字数 538 浏览 7 评论 0原文

0R3 GUI 应用程序也能够显示多种西方语言和日语的文本。 我可以通过使用 CreateFontIndirect() 重新绘制所有更改字体的文本来切换语言运行时。由于我的应用程序根本不使用 WinCE 控件并且不显示任何 WinCE 对话框,因此我没有本地化我的 nk.bin。我刚刚添加了

我使用的字体是:用于日语的 MS UI Gothic 和用于所有其他字体的 Tahoma。

我也在努力支持中文(简体)。 请注意,我对 WinCE 控件的国际化不感兴趣,因为我的应用程序实际上不使用它。我只想对日语文本使用 UI Gothic,对中文文本使用 SimSun。

我将“SimSun & NSimSun”目录项添加到我的 nk.bin 中并重建。 此后,我的 GUI 应用程序可以正确显示西方文本(Tahoma 字体)和中文文本(SimSun 字体)。日语外观不再正确,因为似乎使用了 SimSun 字体来代替 UI Gothic。

我正在使用 CreateFontIndirect() 函数来获取字体 //pLf->lfCharSet = SHIFTJIS_CHARSET;

0R3 GUI application is able to display text in many occidental languages and Japanese too.
I'm able to switch languages runtime by redrawing all the texts changing the font by using CreateFontIndirect(). Since my application do not use at all WinCE controls and do not show any WinCE dialog, I did not localize my nk.bin. I just added

The font I'm using are: MS UI Gothic for Japanese and Tahoma for all the others.

I'm working to support Chinese(Simplified) too.
Notice that I'm not interested in internationalization of WinCE controls since my application actually does not use it. I just want to use UI Gothic for Japanese text and SimSun for Chinese.

I added "SimSun & NSimSun" catalog item to my nk.bin and rebuilt.
After this my GUI application displays properly the occidental texts(Tahoma font) and Chinese text(SimSun font). Japanese appearance is no more correct because it seems that SimSun font is used in place of UI Gothic.

I'm using CreateFontIndirect() function to get font
//pLf->lfCharSet = SHIFTJIS_CHARSET;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩心不撩汉 2024-12-26 01:19:54

您可能需要手动添加日语代码页 (932)。请参阅此处的Windows CE 的代码页列表,以及此处的如何为平台启用其他代码页

You may need to add manually the Japanese code page (932). See here a list of code pages for windows ce, and here how to enable additional code pages to a platform.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文