1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Tweak line spacing for new paragraphs

This commit is contained in:
Emil Ernerfeldt
2021-01-31 16:42:54 +01:00
parent 16d66bd22d
commit 7336df53b7

View File

@@ -340,7 +340,7 @@ impl Font {
row.y_max += cursor_y;
}
cursor_y = paragraph_rows.last().unwrap().y_max;
cursor_y += row_height * 0.4; // Extra spacing between paragraphs. TODO: less hacky
cursor_y += row_height * 0.2; // Extra spacing between paragraphs. TODO: less hacky
rows.append(&mut paragraph_rows);