fix glyph check in FontFallback.MatchFallbackOption

This commit is contained in:
Alexander V
2023-02-23 23:09:30 +03:00
parent c1b60287ca
commit 6096771b51
@@ -86,7 +86,12 @@ namespace QuestPDF.Elements.Text
return fallbackOption;
}
throw CreateNotMatchingFontException(codepoint);
if (Settings.CheckIfAllTextGlyphsAreAvailable)
{
throw CreateNotMatchingFontException(codepoint);
}
return fallbackOptions.First();
}
static Exception CreateNotMatchingFontException(int codepoint)