More text rendering code, incomplete