Jump to content
  • Advertisement

Archived

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

sprinter_trueno

Multiple fonts

This topic is 5388 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!