Crates.io | egui_cosmic_text |
lib.rs | egui_cosmic_text |
version | 0.2.0 |
source | src |
created_at | 2024-05-11 05:30:03.002725 |
updated_at | 2024-08-05 13:02:03.897642 |
description | Unofficial cosmic text widget and utilities for egui |
homepage | |
repository | https://github.com/tamewild/egui_cosmic_text |
max_upload_size | |
id | 1236650 |
size | 2,780,598 |
A work in progress library that adds text functionality to egui based on cosmic text, including an optional text widget, a texture atlas, and drawing utilities.
Click here to visit the web demo.
The widget, while optional, is included with the library by default.
There are rough edges to it right now, which will hopefully get better over time.
If you don't want to use the widget feature, you can use the library to draw text using cosmic text with the provided texture atlas (based on glyphon's atlas implementation). Drawing colored emojis, RTL, etc., is supported.
cosmic-text
)This may not be the most optimal and performant implementation.
The implementation is based on iced, glyphon, bevy_cosmic_edit, and cosmic-edit.
The emoji graphics inside the demo comes from Twemoji, licensed under CC-BY-4.0.
The emoji font file for the demo comes from Emoji-COLRv0.
Contributions would be appreciated!