Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Symbolic font are not set to Report control.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Symbolic font are not set to Report control.

 Post Reply Post Reply
Author
Message
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Topic: Symbolic font are not set to Report control.
    Posted: 10 February 2014 at 12:49am
Hello,

We have report control which is Virtual mode implementation. We have customize setting for columns where user can set any font to any column. For this we have following code in GetItemMetrics(..) to set the font to the records of respective column (Fonts are saved in our DB).

pDrawArgs->pItem->SetFont(..) 

We create CFont pointer object for each column, in this way we could set the customized fount for the columns.

Recently one of our customer reported issue with Symbolic font such as (Bookshelf Symbol 7, Marlett, MS Reference Specialty, Wingdings) are not set to the report control.

Some how report control is not setting Symbolic font. We tried markup string but it open another issues such as Tooltip, special char beaks markup format etc.

Any Suggestion?

Regards,
-Mak
Back to Top
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2014 at 7:34am
Hello, 

I am able to fix the issue. Problem with the LPLOGFONT structure where lfCharSet is not set.
lfCharSet is zero that menace ANSI_CHARSET: Specifies the English character set.
By setting lfCharSet = DEFAULT_CHARSET able to see the Wingdings font to the records.

Regards,
-Mak
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.188 seconds.