Text renderer scaling and refactoring