In the middle of stuff

This commit is contained in:
Conrad Irwin 2023-11-14 14:38:23 -07:00
parent 80b7f75d24
commit 3b01a032ba
5 changed files with 1278 additions and 1473 deletions

View file

@ -1448,6 +1448,7 @@ impl EditorElement {
let snapshot = editor.snapshot(cx);
let style = self.style.clone();
dbg!(&style.text.font());
let font_id = cx.text_system().font_id(&style.text.font()).unwrap();
let font_size = style.text.font_size.to_pixels(cx.rem_size());
let line_height = style.text.line_height_in_pixels(cx.rem_size());