• Advertisement

Archived

This topic is now archived and is closed to further replies.

Multiple fonts

This topic is 5146 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi ppl, While working on my MFC app, I was wondering what ways there are to use multiple fonts in one window. As far as I know, one window can only have one type of font which would mean that I''d have to use multiple windows within a window to present more than one font. Sounds like a lot of work for a very small feature. Isn''t there a better way ? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
You could draw the text yourself using CDC::TextOut() or CDC::DrawText[Ex]() after selecting the font you''d like to use into the CDC. Or, for a specific control, you could use CWnd::SetFont() to set the CFont that that control uses.


Colin Jeanne | Invader''s Realm

Share this post


Link to post
Share on other sites

  • Advertisement