Merge pull request #505 from avobelk/fix-fallback-not-found-glyph

fix glyph check in FontFallback.MatchFallbackOption
This commit is contained in:
Marcin Ziąbek
2023-03-06 20:10:23 +01:00
committed by GitHub
@@ -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)