Made GUI input cursor take the text renderer's alignment into account