Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Text corrupted when drawn vertically in tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Text corrupted when drawn vertically in tab

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


Joined: 30 November 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kyotocanuck Quote  Post ReplyReply Direct Link To This Post Topic: Text corrupted when drawn vertically in tab
    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)
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: 12 January 2010 at 1:14am
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
Back to Top
kyotocanuck View Drop Down
Newbie
Newbie


Joined: 30 November 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote kyotocanuck Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2010 at 1:49am
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
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.063 seconds.