Test optimization for sf::Text