Crates.io | salvation-cosmic-text |
lib.rs | salvation-cosmic-text |
version | 0.12.0 |
source | src |
created_at | 2024-10-16 13:03:16.693715 |
updated_at | 2024-10-16 13:03:16.693715 |
description | Pure Rust multi-line text handling |
homepage | |
repository | https://github.com/Riateche/cosmic-text |
max_upload_size | |
id | 1411764 |
size | 3,375,161 |
Pure Rust multi-line text handling.
COSMIC Text provides advanced text shaping, layout, and rendering wrapped up into a simple abstraction. Shaping is provided by rustybuzz, and supports a wide variety of advanced shaping operations. Rendering is provided by swash, which supports ligatures and color emoji. Layout is implemented custom, in safe Rust, and supports bidirectional text. Font fallback is also a custom implementation, reusing some of the static fallback lists in browsers such as Chromium and Firefox. Linux, macOS, and Windows are supported with the full feature set. Other platforms may need to implement font fallback capabilities.
Arabic translation of Universal Declaration of Human Rights
Hindi translation of Universal Declaration of Human Rights
Simplified Chinese translation of Universal Declaration of Human Rights
The following features must be supported before this is "ready":
default-features = false
)
The UDHR (Universal Declaration of Human Rights) test involves taking the entire
set of UDHR translations (almost 500 languages), concatenating them as one file
(which ends up being 8 megabytes!), then via the editor-test
example,
automatically simulating the entry of that file into cosmic-text per-character,
with the use of backspace and delete tested per character and per line. Then,
the final contents of the buffer is compared to the original file. All of the
106746 lines are correct.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.