Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Japanese Text Display
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Japanese Text Display

 Post Reply Post Reply
Author
Message
shoe View Drop Down
Newbie
Newbie


Joined: 30 March 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote shoe Quote  Post ReplyReply Direct Link To This Post Topic: Japanese Text Display
    Posted: 30 March 2006 at 3:07am
We have been receiving reports from one of our Japanese customers stating that the text within a property grid item is not displaying correctly on their machine (i.e. the CXTPPropertyGridItem''s ''Title''). Having verified that their Regional Settings are correct (Both system locale and non-unicode program settings are set to japanese), we are stuck!

Our software uses RC-Wintrans to internationalise strings, loading them into CStrings internally. We are using _MBCS, not _UNICODE, for all build stages. All of our menus and toolbars are translating correctly (using a different toolkit).

We have tested this on development machines in the UK, and we cannot reproduce this problem, but it consistently happens for our japanese customer(s). Our japanese customer is running a japanese version of Windows XP Pro - we are running the English version.

I have attached a screenshot showing the problem as it appears on the customer''s machine. To recap, I CANNOT reproduce this on my machine (japanese text is rendered fine).



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2006 at 10:36am

Ok, lets think.

We set font defined in Settings dialog by Icon Font:

 LOGFONT lfIcon;
 VERIFY(::SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lfIcon), &lfIcon, 0));
 lfIcon.lfWeight = FW_NORMAL;
 lfIcon.lfItalic = FALSE;
 VERIFY(m_pPaintManager->GetItemMetrics()->m_font Normal.CreateFontIndirect(&lfIcon));

 

so may be lfCharSet is not SHIFTJIS_CHARSET in customers computer

Try to set font directly and set lfCharSet  to SHIFTJIS_CHARSET :

 

LOGFONT lfIcon;
VERIFY( ::SystemParametersInfo( SPI_GETICONTITLELOGFONT, sizeof( lfIcon ), &lfIcon, 0 ) );

lfIcon.lfCharSet  = SHIFTJIS_CHARSET;

CFont fntNormal;
fntNormal.CreateFontIndirect(&lfIcon );

m_wndPropertyGrid.SetFont(&fntNormal);

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.