Jump to content
  • Advertisement
Sign in to follow this  
Woltan

Outline Fonts Tut#14 Question

This topic is 5021 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 folks! I need your help concerning the outline font tutorial and i hope this is the right place to state the question. As far as I understood the tutorial you create a font with the "CreateFont" function. And with the first two paramters you set the hight and the width of the font, but regardless of what I enter the font always looks the same. Did any of you experiance similar difficulties or knows the solution? Thanks a lot in advnace! Regards Woltan

Share this post


Link to post
Share on other sites
Advertisement
I don't know what the width parameter is really for, but I never use it. I put 0 and let windows do it for me.
hfont=CreateFont(-size, 0, 0, 0, 400, IsItalic,FALSE,FALSE,ANSI_CHARSET,OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, FF_DONTCARE|DEFAULT_PITCH, fontname);
size should be negative to make it use that size, not units or something like that. I don't know what it does when it is positive, but it doesn't work right. The 400 is for normal font, not bold. 700 would be bold. The rest you already know. If you change the fontname, it uses the new font. It shouldn't have any problems with looking the same.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!