Function for getting scaled x-translation of text matrix