Reuse getTextWidth.
Remake graphLines with some comments.
Reuse some getTextWidth.