Browse Source

Fix: on the Windows platform, the "Could not find an appropriate font fallback for the following glyphs: $U-000D" exception is thrown when the "QuestPDF.Settings.CheckIfAllTextGlyphsAreAvailable" is set true, and the "TextDescriptor.Line" method is used (that inserts the '\r' character).

Marcin Ziąbek 1 year ago
parent
commit
0b727736ba

+ 2 - 2
Source/QuestPDF/Fluent/TextExtensions.cs

@@ -181,7 +181,7 @@ namespace QuestPDF.Fluent
         public TextSpanDescriptor Line(string? text)
         public TextSpanDescriptor Line(string? text)
         {
         {
             text ??= string.Empty;
             text ??= string.Empty;
-            return Span(text + Environment.NewLine);
+            return Span(text + "\n");
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -190,7 +190,7 @@ namespace QuestPDF.Fluent
         /// <include file='../Resources/Documentation.xml' path='documentation/doc[@for="text.returns.spanDescriptor"]/*' />
         /// <include file='../Resources/Documentation.xml' path='documentation/doc[@for="text.returns.spanDescriptor"]/*' />
         public TextSpanDescriptor EmptyLine()
         public TextSpanDescriptor EmptyLine()
         {
         {
-            return Span(Environment.NewLine);
+            return Span("\n");
         }
         }
         
         
         private TextPageNumberDescriptor PageNumber(Func<IPageContext, int?> pageNumber)
         private TextPageNumberDescriptor PageNumber(Func<IPageContext, int?> pageNumber)

+ 4 - 0
Source/QuestPDF/Resources/ReleaseNotes.txt

@@ -23,3 +23,7 @@ Unfortunately, this release also introduces breaking changes:
 - Removed support for platforms: Android, iOS, UWP, WASM, and Linux-Alpine. We are currently investigating reintroducing support for WASM and Linux-Alpine in future releases.
 - Removed support for platforms: Android, iOS, UWP, WASM, and Linux-Alpine. We are currently investigating reintroducing support for WASM and Linux-Alpine in future releases.
 
 
 We would like to thank the SkiaSharp project, its maintainers, and contributors, for creating a fantastic graphics library. It was a fantastic foundation for QuestPDF for over 3 years.
 We would like to thank the SkiaSharp project, its maintainers, and contributors, for creating a fantastic graphics library. It was a fantastic foundation for QuestPDF for over 3 years.
+
+
+Version 2024.3.1
+- Fix: on the Windows platform, the "Could not find an appropriate font fallback for the following glyphs: $U-000D" exception is thrown when the "QuestPDF.Settings.CheckIfAllTextGlyphsAreAvailable" is set true, and the "TextDescriptor.Line" method is used (that inserts the '\r' character).