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

This will allow replacing the Pango C library, which is used by GTK and many other projects for text rendering.

To reproduce: 1. change `src/text_box.rs:213` to `const SCALE_FACTOR: f64 = 2.0;` 2. create enough lines to overflow the bounds of the layout [Screencast from 2023-09-10 18-49-34.webm](https://github.com/pop-os/cosmic-text/assets/88502180/0951a32a-f067-49b8-aadf-32fd1cd57595)

Currently you have to set the Buffer dimensions before shaping. But it is common requirement to size a box containing some text based on the size of the text itself....

This is just the beginning for Ellipsize, and I have questions! I would appreciate any feedback. Here is the Ellipsize enum, I think multi-line ellipsization would only be useful for...

Setting alignment afterwards appears to invalidate some layouting performed by `set_text` which is presumably not free? Alternatively, this could just be part of the new `set_rich_text` proposed in https://github.com/pop-os/cosmic-text/pull/149 Happy...

Currently, there exist the borrowing `Attrs` and the owning `AttrsOwned`, which only differ in their usage of `Family` vs `FamilyOwned`. In theory, this allows passing `Attrs` without having to allocate....

I'm trying to add support for WASM to my `piet-cosmic-text` crate by embedding a font into the executable. However, it seems that, even after I set the font using `set_sans_serif_font`...

Currently examples are binary modules inside the workspace. As a result, these are not treated as examples by cargo, e.g.: ```console > cargo run --example error: "--example" takes one argument....

There are a few cases where a `Vec` is used to keep track of a unique set of indices/scripts for future reference. It would be more efficient to use a...

Here is an example program adapted from `piet` I wrote in my `piet-cosmic-text` crate. It is using `cosmic-text` v0.8.0 ![image](https://github.com/pop-os/cosmic-text/assets/19805233/fc9eaa4e-6ee0-4820-b131-152b94a55af1) Here is the program after I update it to v0.9.0:...