From ef89be97105040501b57eb972018518a524f71dc Mon Sep 17 00:00:00 2001 From: MarcinZiabek Date: Mon, 17 Apr 2023 02:15:19 +0200 Subject: [PATCH] Improvement: updated the CreateNotMatchingFontException text to mention that glyph checking operation can be disabled with the Settings.CheckIfAllTextGlyphsAreAvailable setting --- Source/QuestPDF/Elements/Text/FontFallback.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/QuestPDF/Elements/Text/FontFallback.cs b/Source/QuestPDF/Elements/Text/FontFallback.cs index 2b71fbc..605dce0 100644 --- a/Source/QuestPDF/Elements/Text/FontFallback.cs +++ b/Source/QuestPDF/Elements/Text/FontFallback.cs @@ -105,7 +105,9 @@ namespace QuestPDF.Elements.Text $"Font families available on current environment that contain this glyph: {proposedFontsFormatted}. " + $"Possible solutions: " + $"1) Use one of the listed fonts as the primary font in your document. " + - $"2) Configure the fallback TextStyle using the 'TextStyle.Fallback' method with one of the listed fonts. "); + $"2) Configure the fallback TextStyle using the 'TextStyle.Fallback' method with one of the listed fonts. " + + $"You can disable this check by setting the 'Settings.CheckIfAllTextGlyphsAreAvailable' option to 'false'. " + + $"However, this may result with text glyphs being incorrectly rendered without any warning."); } static IEnumerable FindFontsContainingGlyph(int codepoint)