Print Page | Close Window

Japanese Text Display

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=3909
Printed Date: 22 November 2024 at 3:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Japanese Text Display
Posted By: shoe
Subject: Japanese Text Display
Date 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).






Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net