diff --git a/crates/egui_demo_lib/src/demo/misc_demo_window.rs b/crates/egui_demo_lib/src/demo/misc_demo_window.rs index df85a31bf..0fd6b7fb6 100644 --- a/crates/egui_demo_lib/src/demo/misc_demo_window.rs +++ b/crates/egui_demo_lib/src/demo/misc_demo_window.rs @@ -580,8 +580,17 @@ fn text_layout_demo(ui: &mut Ui) { }; job.append( - "This is a demonstration of ", + "This", first_row_indentation, + TextFormat { + color: default_color, + font_id: FontId::proportional(20.0), + ..Default::default() + }, + ); + job.append( + " is a demonstration of ", + 0.0, TextFormat { color: default_color, ..Default::default() @@ -632,7 +641,7 @@ fn text_layout_demo(ui: &mut Ui) { "mixing ", 0.0, TextFormat { - font_id: FontId::proportional(17.0), + font_id: FontId::proportional(20.0), color: default_color, ..Default::default() },