Jump to content
  • Advertisement

Archived

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

NumbChucks

Change FONT Property

This topic is 5632 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

Someone tell how to change FONT property ? Please someone give me a reference about an API or Class which can change font properties of a Main Window form or any other Window! Thanks

Share this post


Link to post
Share on other sites
Advertisement
you will need to create a new font

using CreateFont API

then before drawing text to the window you should select the new font into the window''s device context *dc*


Raymond Jacobs,
Profesional Web Applications Developer,
Weekend Game Developer,
www.EtherealDarkness.com

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
you mention font property? what language are you coding in?

you''ll have to send a WM_SETFONT msg if you''re using basic Win32 API calls. you send a font handle. to get the font handle you''ll have to create the font yourself using CreateFont or CreateFontIndirect.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!