{"id":31911785,"url":"https://github.com/skyrpex/richtext","last_synced_at":"2025-10-28T20:38:32.139Z","repository":{"id":4084057,"uuid":"5190160","full_name":"skyrpex/RichText","owner":"skyrpex","description":"Rich text class for SFML2. Allows the user to draw lines of text with different styles and colors.","archived":false,"fork":false,"pushed_at":"2020-01-28T14:41:25.000Z","size":54,"stargazers_count":49,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-05T02:54:17.377Z","etag":null,"topics":["cpp","richtext","sfml","text","ui"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"touchstonejs/touchstonejs","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyrpex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-26T09:22:21.000Z","updated_at":"2024-09-21T20:51:02.000Z","dependencies_parsed_at":"2022-09-16T04:52:53.099Z","dependency_job_id":null,"html_url":"https://github.com/skyrpex/RichText","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/skyrpex/RichText","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyrpex%2FRichText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyrpex%2FRichText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyrpex%2FRichText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyrpex%2FRichText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyrpex","download_url":"https://codeload.github.com/skyrpex/RichText/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyrpex%2FRichText/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016287,"owners_count":26085828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","richtext","sfml","text","ui"],"created_at":"2025-10-13T17:27:11.893Z","updated_at":"2025-10-13T17:27:21.260Z","avatar_url":"https://github.com/skyrpex.png","language":"C++","readme":"﻿# RichText\n\nRich text class for [SFML 2](https://github.com/SFML/SFML/). Allows the\nuser to draw lines of text with different styles and colors.\n\n## Authors\n\n* [Cristian Pallarés](https://github.com/Skyrpex/) - Original code\n* [Lukas Dürrenberger](https://github.com/eXpl0it3r/) - Conversion to the new SFML 2 API\n\n## How to use\n\n1. Include the header and the source to your project.\n2. Link to SFML 2.4.x.\n3. Use a C++11 ready compiler.\n\n## Support branches\n\n**Notice:** There's no guarantee that these branches are fully updated.\n\n* For a non C++11 ready compilers, there is a [support branch](https://github.com/Skyrpex/RichText/tree/support/no-c%2B%2B11).\n* For earlier SFML versions than 2.4.x, see the [support branch](https://github.com/Skyrpex/RichText/tree/support/pre-sfml-2.4).\n\n## Repository\n\nYou can get the current development version from the [git repository](https://github.com/Skyrpex/RichText).\n\n## Example\n\n```cpp\n#include \u003cSFML/Graphics.hpp\u003e\n#include \"RichText.hpp\"\n\nint main()\n{\n    sf::RenderWindow window(sf::VideoMode(800, 600), \"sfe::RichText\");\n    window.setFramerateLimit(30);\n\n    sf::Font font;\n    font.loadFromFile(\"FreeMono.ttf\");\n\n    sfe::RichText text(font);\n    text \u003c\u003c sf::Text::Bold       \u003c\u003c sf::Color::Cyan  \u003c\u003c \"This \"\n         \u003c\u003c sf::Text::Italic     \u003c\u003c sf::Color::White \u003c\u003c \"is\\nan\\n\"\n         \u003c\u003c sf::Text::Regular    \u003c\u003c sf::Color::Green \u003c\u003c \"example\"\n         \u003c\u003c sf::Color::White     \u003c\u003c \".\\n\"\n         \u003c\u003c sf::Text::Underlined \u003c\u003c \"It looks good!\";\n\n    text.setCharacterSize(25);\n    text.setPosition(400, 300);\n    text.setOrigin(text.getGlobalBounds().width / 2.f, text.getGlobalBounds().height / 2.f);\n\n    while (window.isOpen())\n    {\n        sf::Event event;\n        while (window.pollEvent(event))\n        {\n            if (event.type == sf::Event::Closed)\n                window.close();\n        }\n\n        window.clear();\n        window.draw(text);\n        window.display();\n    }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyrpex%2Frichtext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyrpex%2Frichtext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyrpex%2Frichtext/lists"}