Text rendering: small optimization