Sign in to follow this  
Lithic

Word-wrapping bitmap fonts

Recommended Posts

Lithic    345
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
Fingers_    410
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this