Skip to content
Snippets Groups Projects
Commit b3d53dee authored by sam edelsten's avatar sam edelsten
Browse files

change linecount and string in example

parent 0ab6361e
No related branches found
No related tags found
No related merge requests found
......@@ -29,12 +29,13 @@ fn setup(mut commands: Commands, mut font_system: ResMut<CosmicFontSystem>) {
..Default::default()
},
max_chars: CosmicMaxChars(15),
max_lines: CosmicMaxLines(3),
max_lines: CosmicMaxLines(1),
..default()
}
.set_text(
CosmicText::OneStyle(
"This text\n is longer\n than is\n allowed by\n the limits.\n".into(),
"1 line 15 chars! But this\n is longer\n than is\n allowed by\n the limits.\n"
.into(),
),
attrs,
&mut font_system.0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment