view + a bunch of fixes or smth idek man

This commit is contained in:
2025-12-08 00:12:11 -05:00
parent b66d4da5d7
commit 434e3c3af7
18 changed files with 253 additions and 109 deletions

View File

@@ -67,7 +67,7 @@ impl TextView {
return tex.clone();
}
self.width = width;
let mut text_data = ctx.text.borrow_mut();
let mut text_data = ctx.text.get_mut();
self.attrs
.apply(&mut text_data.font_system, &mut self.buf, width);
self.buf
@@ -139,7 +139,7 @@ impl Text {
if self.content.changed {
self.content.changed = false;
self.view.buf.set_text(
&mut ctx.text.borrow_mut().font_system,
&mut ctx.text.get_mut().font_system,
&self.content,
&Attrs::new().family(self.view.attrs.family),
SHAPING,