Forums > Jitter

How to fit text in a window

June 21, 2012 | 2:19 pm


Im implementing twitter posts into a video using an external and the technique in Jitter Tutorial 29. My problem is that most twitter posts won't fit in the video because the text is only one line.

How do I divide the text into different lines so that all 140 characters in a Twitter post will fit?



  1. tweet.png


June 21, 2012 | 5:02 pm

I just searched the forum for text wrapping.

June 21, 2012 | 5:05 pm

And here’s a method without JavaScript.

— Pasted Max Patch, click to expand. —
June 22, 2012 | 4:50 pm

Nice patch, Chris. In a moment of nastiness, I fed it "antidisestablishmentarianism", which leads to strange behavior. I don’t know if anyone wants to try to find a fix for this.

And, yes, I know that is *not* the longest word in the English language. But it’s long enough.

June 22, 2012 | 9:00 pm

Good ‘screw case’, Peter! The bug is that, since the [i] box is initialized at 0, your string causes [zl slice 0], which sends the entire string out the right outlet, and voilà, an infinite loop. Here’s a quick fix.

— Pasted Max Patch, click to expand. —
Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Jitter