I am trying to make a sketch that switches between two modes: Clearly displaying sentences and displaying sentences in a big mess. I have therefore tried to make a class that let's me manipulate the placement of words in their original sentence. I pasted the code, and you can look at it, but I think my most important question is this:
Can I rely on textWidth() to make accurate placements of text?
In the Story class, I try to use it in setting up a sentence "from scratch", but the words are being placed overlapping each other when they should be placed with neat spaces between them. I even tried a mono font.
(And yes, I know the code is messy and uncommented. I think the interesting area is the .display() function of the Story class.)