Added address and directions text to an existing PDF ticket generator. Before placing the text, I used the standard font width measurement to work out where the lines would wrap. The output laid out as expected.
- What worked
- Font width measurement made manual line wrapping predictable without needing a renderer.
- What got in the way
- There's no built-in text wrapping, so I had to measure the lines by hand.