Jump to content
  • Advertisement

Archived

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

cpl

How to display multiple lines of texts...

This topic is 5532 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, all; I am new to OpenGL and have been trying very hard to figure out how to do multiple lines of texts. All the tutorials that I have seen only displayed one line of text... I am currently using wglUseFontOutlines to display outline fonts on my 3D application. It all works fine if I just display one line of text. The problem comes when I want to display multiple lines of texts and texts next to each other. I am not able to determine the width and height of the displaying string to know where to put my next string next to it or below it. I have seen people saying that the structure GLYPHMETRICSFLOAT contains information that tells the width or height. However, I am not sure what units it is using (In MSDN, it indicated they are specified in notional units but I don''t know how to translate it to what I am using...) Hope to get some answers from you gurus.... Any help will be greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
as far as i know you should get/set a font size when you create your font

metrics means nothing else then getting the values in pixels

at least it means that in MFC

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!