From f851221718d73fe3fb9f584f6698deacfc3af05b Mon Sep 17 00:00:00 2001 From: Antony Corbett Date: Thu, 26 Jan 2023 14:29:40 +0000 Subject: [PATCH] avoid multiple enumeration --- Source/QuestPDF/Elements/Text/FontFallback.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/QuestPDF/Elements/Text/FontFallback.cs b/Source/QuestPDF/Elements/Text/FontFallback.cs index cb215d4..69bf6e2 100644 --- a/Source/QuestPDF/Elements/Text/FontFallback.cs +++ b/Source/QuestPDF/Elements/Text/FontFallback.cs @@ -94,7 +94,7 @@ namespace QuestPDF.Elements.Text var character = char.ConvertFromUtf32(codepoint); var unicode = $"U-{codepoint:X4}"; - var proposedFonts = FindFontsContainingGlyph(codepoint); + var proposedFonts = FindFontsContainingGlyph(codepoint).ToArray(); var proposedFontsFormatted = proposedFonts.Any() ? string.Join(", ", proposedFonts) : "no fonts available"; return new DocumentDrawingException(