|
|
@@ -142,12 +142,15 @@ namespace QuestPDF.Drawing
|
|
|
|
|
|
if (fontFromDefaultSource != null)
|
|
|
return fontFromDefaultSource;
|
|
|
+
|
|
|
+ var availableFontNames = string.Join(", ", SKFontManager.Default.GetFontFamilies());
|
|
|
|
|
|
throw new ArgumentException(
|
|
|
$"The typeface '{style.FontFamily}' could not be found. " +
|
|
|
$"Please consider the following options: " +
|
|
|
$"1) install the font on your operating system or execution environment. " +
|
|
|
- $"2) load a font file specifically for QuestPDF usage via the QuestPDF.Drawing.FontManager.RegisterFontType(Stream fileContentStream) static method.");
|
|
|
+ $"2) load a font file specifically for QuestPDF usage via the QuestPDF.Drawing.FontManager.RegisterFontType(Stream fileContentStream) static method. " +
|
|
|
+ $"Available font family names: [{availableFontNames}]");
|
|
|
}
|
|
|
|
|
|
static float GetTextScale(TextStyle style)
|