Update cosmic text to 0.13.2 (#27362)

Related #14222

Release Notes:

- This PR updates `cosmic-text` dependency on `gpui` crate from `0.11.2`
to 0.13.2`. This decreases RAM usage zed depending on the amount of
monospace fonts installed on the system. On Arch Linux with `nerd-fonts`
package installed (which provides around 2000 monospaced fonts), it
decreases ram usage from ~800mb to around ~300mb.

- Updated `cosmic-text` to `0.13.2` on `gpui` crate
This commit is contained in:
Alvaro Parker
2025-03-24 13:37:41 +00:00
committed by GitHub
parent 7db9077835
commit ddf8d07f02
3 changed files with 35 additions and 24 deletions
@@ -376,15 +376,13 @@ impl CosmicTextSystemState {
);
offs += run.len;
}
let mut line = ShapeLine::new_in_buffer(
&mut self.scratch,
let mut line = ShapeLine::new(
&mut self.font_system,
text,
&attrs_list,
cosmic_text::Shaping::Advanced,
4,
);
let mut layout = Vec::with_capacity(1);
line.layout_to_buffer(
&mut self.scratch,