cosmic-text icon indicating copy to clipboard operation
cosmic-text copied to clipboard

Pure Rust multi-line text handling

Results 71 cosmic-text issues
Sort by recently updated
recently updated
newest added

Modifying editor-test ``` let text = if let Some(arg) = env::args().nth(1) { fs::read_to_string(&arg).expect("failed to open file") } else { #[cfg(feature = "mono")] let default_text = include_str!("../../../sample/a.txt"); #[cfg(not(feature = "mono"))] let...

This is a highly requested feature from a rich text editor - being able to change font size within a line. I looked into doing this myself but couldn't figure...

Excerpt of `cargo bloat` when run on an example programming containing `winit` and [`piet-hardware`](https://crates.io/crates/piet-hardware), which uses `cosmic-text` for text: ``` File .text Size Crate Name 0.6% 2.1% 77.7KiB x11_dl x11_dl::xlib::Xlib::open::{{closure}}...

Hi, I'm from the ICU4X team. We're an open source project building i18n components in Rust. I noticed in your README that you support "basic" line layout. If you need...

This is a follow up for #100. It removes the `color_opt` field from `Attrs` and stores the information in the new `color_spans` field of `BufferLine` instead. This allows it to...

The main use case here is being able to reuse a Buffer both for layout and drawing. `iced` does not know the color of the text during layout. Color doesn't...

It seems like font fallback generally works pretty well, but if a certain property, such as italics are not available for the fallback font, the font is not chosen at...

Depending on whether it's a mixed layout or not, the arabic characters are either reversed or not: ![https://i.imgur.com/WNUdgIy.png](https://i.imgur.com/WNUdgIy.png) This is with the latest master. Here you see a debugger view...

Primarily to let users know that some code might not compile if no_std mode is enabled. This may be unnessecary for the `std` module of FontSystem, but it can make...

This is done when generating docs on docs.rs and locally with `RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --all-features` There seems to be some bugs with the labels however: There does seem to...