You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If to create and apply this FontResolver, PdfSharp itself resolves and loads custom/private fonts correctly, but HTML-Renderer does not.
If there is no font with a certain name in the system, HTML-Renderer does not resolve it with FontResolver — it first substitute familyName with 'Segoe UI' and only after that calls the FontResolver.
If a font is installed, HTML-Renderer recognises it and passes the familyName to the FontResolver.
I need to resolve two fonts and as workaround I use well-known fonts in css like Verdana, Tahoma, Impact, and replace them with custom/private fonts in the FontResolver.
Is it a bug or I just have not found the right way to let HTML-Renderer know about the custom/private fonts?
Activity
superboy1984 commentedon Mar 31, 2018
The same question
ayatim commentedon Mar 22, 2019
Same Question here :).
@lobodava did you manage to find a solution for that ?
POPCORNBOOM commentedon Feb 5, 2022
The same question
eXpl0it3r commentedon Dec 9, 2025
This needs to be addressed with the custom font resolver anyways when updating PDFsharp in #221