draw text taking elide mode in account