Jump to content
  • Advertisement
Sign in to follow this  
Lithic

Word-wrapping bitmap fonts

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

How can i wrap words with bitmap fonts to fit a certain size rectangle (in terms of the viewable area)? A viewable window is always 1.0x1.0 orthographic, PrintText(...) parameters top/left specify a location to start printing.

Share this post


Link to post
Share on other sites
Advertisement
At its simplest, word wrap is pretty easy: Print one word at a time; if the word doesn't fit on the current line, go to the beginning of the next line and print it there instead.

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.

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

Sign me up!