I implemented scaling for text and line. The text, however, is buggy.