mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -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(
|
job.append(
|
||||||
"This is a demonstration of ",
|
"This",
|
||||||
first_row_indentation,
|
first_row_indentation,
|
||||||
|
TextFormat {
|
||||||
|
color: default_color,
|
||||||
|
font_id: FontId::proportional(20.0),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
);
|
||||||
|
job.append(
|
||||||
|
" is a demonstration of ",
|
||||||
|
0.0,
|
||||||
TextFormat {
|
TextFormat {
|
||||||
color: default_color,
|
color: default_color,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
@@ -632,7 +641,7 @@ fn text_layout_demo(ui: &mut Ui) {
|
|||||||
"mixing ",
|
"mixing ",
|
||||||
0.0,
|
0.0,
|
||||||
TextFormat {
|
TextFormat {
|
||||||
font_id: FontId::proportional(17.0),
|
font_id: FontId::proportional(20.0),
|
||||||
color: default_color,
|
color: default_color,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user