fixed truncation / center alignment bug in text rendering