Continued working on text-scaling code (PLEASE DO NOT TOUCH!)