mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Better text layout demo/test
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user