![]() |
Text corrupted when drawn vertically in tab |
Post Reply ![]() |
Author | |
kyotocanuck ![]() Newbie ![]() Joined: 30 November 2007 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 11 January 2010 at 2:29am |
My current project has both English and Japanese resources and uses the CXTPDockingPaneManager to show several panels with Japanese titles. It all appears to work fine except when the panes are displayed as vertical tabs. In this case, the font used does not properly display Japanese text so I get gibberish.
I have traced the issue to CXTPDrawHelpers::GetVerticalFontName() returning "Arial" which on my PC and several others, does not properly display Japanese text. In CXTPTabPaintManager::SetFontIndirect() GetVerticalFontName is used and the face name changed from the default "Segoe UI" to Arial. I would like to know a good way to work around this problem but none of these functions are virtual and I would like to avoid actually changing the codejock source if possible. I would like to set CXTPTabPaintManager::m_fntVerticalNormal to have the same face name as m_fntNormal. Is this possible? (Using 13.2.0) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Do you call SetFontIndirect manually ? / If not, try call it and set lfCharSet field manually to SHIFTJIS_CHARSET.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kyotocanuck ![]() Newbie ![]() Joined: 30 November 2007 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Thank you for the suggestion.
I have tried calling SetFontIndirect() via m_paneManager.GetPaintManager()->GetTabPaintManager()->SetFontIndirect() but unfortunately there is no effect. Good try though. I hadn't thought of that. I was trying to use this function to set the font and it does set the font as desired for horizontal display, but vertical uses CXTPDrawHelpers::GetVerticalFontName I'm looking for some way around this to prevent the call the GetVerticalFontName. Disabling this call in the codejock source sets the font correctly and displays correctly but this function is not virtual and as I stated early, I'm trying to avoid changing the source if possible. Do you have any other suggestions? Thanks again |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |