Fix cell height
This commit is contained in:
parent
bc5c7f3a48
commit
dd823c182d
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ fn main() {
|
|||
// Use size of space to determine cell size
|
||||
buffer.set_text(&mut font_system, " ", default_attrs, Shaping::Advanced);
|
||||
let layout = buffer.line_layout(&mut font_system, 0).unwrap();
|
||||
(layout[0].w, layout[0].max_ascent + layout[0].max_descent)
|
||||
(layout[0].w, metrics.line_height)
|
||||
};
|
||||
println!("{}, {}", cell_width, cell_height);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue