Algorithm for Text Wrapping Within a Shape
Posted
by devongovett
on Stack Overflow
See other posts from Stack Overflow
or by devongovett
Published on 2010-06-15T19:20:52Z
Indexed on
2010/06/15
21:02 UTC
Read the original article
Hit count: 427
I am looking for an algorithm to wrap text within a non-rectangular shape, preferably based on the Knuth and Plass algorithm. The hardest part of this is that the lines may have different heights due to differing font sizes in the text. The image below is an example of what the algorithm should be able to generate.
Thanks for any help!
© Stack Overflow or respective owner