Add a field to limit the number of lines for a given text. So cache the parts respecting the maximum size and align them vertically as it's done for the transport lines icons & names.
The last line will be shrunk if it gets larger than the maximum size.
Break lines in spacing characters (\n, \r, \t, blank space)
Use measure text to predict which words will be fit in each part.
Add a field to limit the number of lines for a given text. So cache the parts respecting the maximum size and align them vertically as it's done for the transport lines icons & names.