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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user