This commit is contained in:
Jeremy Soller 2024-01-17 13:26:39 -07:00
parent 329941c4a6
commit a11f68f13d
6 changed files with 66 additions and 26 deletions

View file

@ -210,7 +210,15 @@ impl BufferLine {
let align = self.align;
let shape = self.shape_in_buffer(scratch, font_system);
let mut layout = Vec::with_capacity(1);
shape.layout_to_buffer(scratch, font_size, width, wrap, align, &mut layout, match_mono_width);
shape.layout_to_buffer(
scratch,
font_size,
width,
wrap,
align,
&mut layout,
match_mono_width,
);
self.layout_opt = Some(layout);
}
self.layout_opt.as_ref().expect("layout not found")