Simplified text rendering code