Introduced new line breaking algorithm: break anywhere

This commit is contained in:
MarcinZiabek
2022-03-26 03:34:31 +01:00
parent 0711bca1e1
commit 11ff53946d
7 changed files with 52 additions and 28 deletions
+4 -2
View File
@@ -394,8 +394,10 @@ namespace QuestPDF.Examples
column.Item().Text(text =>
{
text.DefaultTextStyle(x => x.BackgroundColor(Colors.Red.Lighten3));
text.Span(" " + Placeholders.LoremIpsum() + " 0123456789012345678901234567890123456789012345678901234567890123456789 ").FontSize(24);
text.DefaultTextStyle(x => x.BackgroundColor(Colors.Red.Lighten3).FontSize(24));
text.Span(" " + Placeholders.LoremIpsum());
text.Span(" 0123456789012345678901234567890123456789012345678901234567890123456789 ").BreakAnywhere();
});
});
});