chore: update libcosmic and cosmic-text

This commit is contained in:
Hojjat 2026-04-01 16:15:48 -06:00 committed by Jacob Kauffmann
parent cf557a0608
commit 6677fe05d5
3 changed files with 391 additions and 601 deletions

982
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -60,12 +60,9 @@ impl EditorTab {
let attrs = crate::monospace_attrs();
let zoom_adj = Default::default();
let mut buffer = Buffer::new_empty(config.metrics(zoom_adj));
{
let mut font_system = font_system().write().unwrap();
// Set a minimal size before it is updated by draw
buffer.set_size(font_system.raw(), Some(0.0), Some(0.0));
buffer.set_text(font_system.raw(), "", &attrs, Shaping::Advanced, None);
}
buffer.set_size(Some(0.0), Some(0.0));
buffer.set_text("", &attrs, Shaping::Advanced, None);
let editor = SyntaxEditor::new(
Arc::new(buffer),

View file

@ -455,7 +455,6 @@ where
// Set metrics and size
editor.with_buffer_mut(|buffer| {
buffer.set_metrics_and_size(
font_system.raw(),
metrics,
Some((image_w - editor_offset_x) as f32),
Some(image_h as f32),