-Codechange: const correctness for text drawing functions