{"id":15039066,"url":"https://github.com/pop-os/cosmic-text","last_synced_at":"2026-02-19T18:06:56.997Z","repository":{"id":61888870,"uuid":"553756546","full_name":"pop-os/cosmic-text","owner":"pop-os","description":"Pure Rust multi-line text handling","archived":false,"fork":false,"pushed_at":"2025-04-21T15:59:06.000Z","size":14363,"stargazers_count":1772,"open_issues_count":96,"forks_count":123,"subscribers_count":33,"default_branch":"main","last_synced_at":"2025-05-12T13:18:00.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pop-os.github.io/cosmic-text/cosmic_text/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pop-os.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-18T18:07:53.000Z","updated_at":"2025-05-10T08:58:08.000Z","dependencies_parsed_at":"2023-12-20T10:37:47.324Z","dependency_job_id":"bad9fb83-7f05-4c72-9025-8c6231d115d4","html_url":"https://github.com/pop-os/cosmic-text","commit_stats":{"total_commits":344,"total_committers":19,"mean_commits":"18.105263157894736","dds":"0.33720930232558144","last_synced_commit":"bfb5eefbfa869915e47824877af68a5307cf301c"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fcosmic-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fcosmic-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fcosmic-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pop-os%2Fcosmic-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pop-os","download_url":"https://codeload.github.com/pop-os/cosmic-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253745196,"owners_count":21957319,"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","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":[],"created_at":"2024-09-24T20:41:26.334Z","updated_at":"2025-12-30T00:20:35.811Z","avatar_url":"https://github.com/pop-os.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# COSMIC Text\n\n[![crates.io](https://img.shields.io/crates/v/cosmic-text.svg)](https://crates.io/crates/cosmic-text)\n[![docs.rs](https://docs.rs/cosmic-text/badge.svg)](https://docs.rs/cosmic-text)\n![license](https://img.shields.io/crates/l/cosmic-text.svg)\n[![Rust workflow](https://github.com/pop-os/cosmic-text/workflows/Rust/badge.svg?event=push)](https://github.com/pop-os/cosmic-text/actions)\n\nPure Rust multi-line text handling.\n\nCOSMIC Text provides advanced text shaping, layout, and rendering wrapped up\ninto a simple abstraction. Shaping is provided by rustybuzz, and supports a\nwide variety of advanced shaping operations. Rendering is provided by swash,\nwhich supports ligatures and color emoji. Layout is implemented custom, in safe\nRust, and supports bidirectional text. Font fallback is also a custom\nimplementation, reusing some of the static fallback lists in browsers such as\nChromium and Firefox. Linux, macOS, and Windows are supported with the full\nfeature set. Other platforms may need to implement font fallback capabilities.\n\n## Screenshots\n\nArabic translation of Universal Declaration of Human Rights\n[![Arabic screenshot](screenshots/arabic.png)](screenshots/arabic.png)\n\nHindi translation of Universal Declaration of Human Rights\n[![Hindi screenshot](screenshots/hindi.png)](screenshots/hindi.png)\n\nSimplified Chinese translation of Universal Declaration of Human Rights\n[![Simplified Chinses screenshot](screenshots/chinese-simplified.png)](screenshots/chinese-simplified.png)\n\n## Roadmap\n\nThe following features must be supported before this is \"ready\":\n\n- [x] Font loading (using fontdb)\n  - [x] Preset fonts\n  - [x] System fonts\n- [x] Text styles (bold, italic, etc.)\n  - [x] Per-buffer\n  - [x] Per-span\n- [x] Font shaping (using rustybuzz)\n  - [x] Cache results\n  - [x] RTL\n  - [x] Bidirectional rendering\n- [x] Font fallback\n  - [x] Choose font based on locale to work around \"unification\"\n  - [x] Per-line granularity\n  - [x] Per-character granularity\n- [x] Font layout\n  - [x] Click detection\n  - [x] Simple wrapping\n  - [ ] Wrapping with indentation\n  - [ ] No wrapping\n  - [ ] Ellipsize\n- [x] Font rendering (using swash)\n  - [x] Cache results\n  - [x] Font hinting\n  - [x] Ligatures\n  - [x] Color emoji\n- [x] Text editing\n    - [x] Performance improvements\n    - [x] Text selection\n    - [x] Can automatically recreate https://unicode.org/udhr/ without errors (see below)\n    - [x] Bidirectional selection\n    - [ ] Copy/paste\n- [x] no_std support (with `default-features = false`)\n    - [ ] no_std font loading\n    - [x] no_std shaping\n    - [x] no_std layout\n    - [ ] no_std rendering\n\nThe UDHR (Universal Declaration of Human Rights) test involves taking the entire\nset of UDHR translations (almost 500 languages), concatenating them as one file\n(which ends up being 8 megabytes!), then via the `editor-test` example,\nautomatically simulating the entry of that file into cosmic-text per-character,\nwith the use of backspace and delete tested per character and per line. Then,\nthe final contents of the buffer is compared to the original file. All of the\n106746 lines are correct.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpop-os%2Fcosmic-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpop-os%2Fcosmic-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpop-os%2Fcosmic-text/lists"}