#includeIn this example, we create a text object using the SFML library, set the font to Arial, and then set the text string using the setText method. We then create a simple window using the SFML library and draw the text object to the screen. The package library used in this example is SFML, which is a popular multimedia library for C++.#include int main() { // Create a text object sf::Text text; // Set the font sf::Font font; font.loadFromFile("arial.ttf"); text.setFont(font); // Set the text string using setText text.setString("Hello, World!"); // Draw the text to the screen sf::RenderWindow window(sf::VideoMode(640, 480), "SFML Text Example"); while (window.isOpen()) { window.clear(); window.draw(text); window.display(); } return 0; }