Wrapping Text

a collection of functions that wrap text in 3 simple ways. either for monospaced fonts ( every character has the same width ) where text is either wrapped after a certain amount of characters chop_after_char(String,int) or after an amount of characters but respecting word integrity ( i.e wraps after next space character ) ‌chop_after_word(String,int) or for proportional fonts ( characters have varying width ) with chop_after_word_proportional(String,float).
the sketch can be found at SketchWrappingText.