Adds font spacing into account when detecting end of line for line breaks