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

I'm on macOS 13.2.1, with M1. When I run examples, I get something like this: ``` svg icon 'Name("format-justify-left")' size 20 not found svg icon 'Name("format-justify-center")' size 20 not found...

Hi! First of all, thanks for the crate! I was trying to run the examples but faced some issues and I was wondering Would accept PRs to improve them? The...

It's often the case that UIs want to intersperse non-textual content in line with text. Examples of this would include inline images and form fields. But in theory this extends...

Often for a simple layout it's desirable to centre vertically. Since a `Buffer` considers the size an input, this library should probably also support top/center/bottom vertical alignment? #70 affects this...

`cosmic-text` currently implements a very basic 1:1 matching algorithm where if anything doesn't perfectly match, the font will never be chosen: https://github.com/pop-os/cosmic-text/blob/b9fef72f76e702bf1190292c60d567bd7f147361/src/attrs.rs#L166-L175 It should implement the [CSS Fonts Module Level...

`cosmic-text` version: 0.11.2 System info: Ubuntu 22.04, GNOME on Wayland Hello! I'm an engineer working on [Warp terminal](https://www.warp.dev/), which uses `cosmic-text` for text layout on Linux. While working on custom...

If you have a line with a lot of whitespaces at the end, it might not wrap properly. The test case below fails as the line doesn't get wrapped. Tested...

This will reduce load time from 2376ms to 388ms when loading many huge fonts

https://github.com/pop-os/cosmic-text/blob/ff5501d9a36e51c50d908413caf7632d8f7533b7/src/font/system.rs#L176-L185 It takes 2 seconds on my nixos which makes startup slow

A good example file is https://github.com/pop-os/alsa-ucm-conf/blob/master_jammy/ucm2/ucm.conf Indentation with spaces instead of tabs is rendering as expected. ![screenshot-2024-04-26-19-35-15](https://github.com/pop-os/cosmic-text/assets/13512097/118e6b08-b456-44e9-8af4-f502c3f89378)

bug