Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ static DocumentPdfRenderer()
using var stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream($"Odisea.Modules.Documents.Fonts.{resource}")
?? throw new InvalidOperationException($"Embedded font {resource} missing.");
FontManager.RegisterFontWithCustomName(Font, stream);
// Registers under the family name stored in the TTF ("DejaVu Sans"),
// which is what our Font constant refers to — works across QuestPDF
// versions (RegisterFontWithCustomName died in 2026.9).
FontManager.RegisterFont(stream);
}
}

Expand Down
Loading