chore: update libcosmic and cosmic-text
This commit is contained in:
parent
cf557a0608
commit
6677fe05d5
3 changed files with 391 additions and 601 deletions
|
|
@ -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);
|
||||
}
|
||||
// Set a minimal size before it is updated by draw
|
||||
buffer.set_size(Some(0.0), Some(0.0));
|
||||
buffer.set_text("", &attrs, Shaping::Advanced, None);
|
||||
|
||||
let editor = SyntaxEditor::new(
|
||||
Arc::new(buffer),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue