From 983edd5f7667406e4a12035b2c6585e6024433d3 Mon Sep 17 00:00:00 2001 From: MarcinZiabek Date: Mon, 7 Nov 2022 12:43:55 +0100 Subject: [PATCH] Added example for Arabic support --- QuestPDF.Examples/TextExamples.cs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/QuestPDF.Examples/TextExamples.cs b/QuestPDF.Examples/TextExamples.cs index 2d71a33..64526bd 100644 --- a/QuestPDF.Examples/TextExamples.cs +++ b/QuestPDF.Examples/TextExamples.cs @@ -691,7 +691,28 @@ namespace QuestPDF.Examples } [Test] - public void TextDirectionality() + public void AdvancedLanguagesSupport() + { + RenderingTest + .Create() + .PageSize(new PageSize(400, 400)) + .ProduceImages() + .ShowResults() + .Render(container => + { + var text = "في المعلوماتية أو الرياضيات، خوارزمية الترتيب هي خوارزمية تمكن من تنظيم مجموعة عناصر حسب ترتيب محدد."; + + container + .Padding(20) + .ContentFromRightToLeft() + .Text(text) + .FontFamily(Fonts.Calibri) + .FontSize(22); + }); + } + + [Test] + public void WordWrappingWhenRightToLeft() { RenderingTest .Create()