Support Custom Web Fonts in Azure App Services
Currently custom (web) fonts are not supported, mentioned in kudu's Github Wiki.
PDF generation from HTML
There are some frameworks that do not leverage User32/GDI32 extensively (wkhtmltopdf, for example) and we are working on enabling these in Basic+ the same way we enabled SQL Reporting.
Known issue for all PDF generators based on wkhtmltopdf or phantomjs: custom fonts are not rendered (system-installed font is used instead) because of sandbox GDI API limitations that present even in VM-based Azure Apps plans (Basic or higher).
I'm trying to use wkhtmltopdf in an Azure Function, though I stumble across this issue. Google's Open Sans is not being loaded. It would be great if you guys would look into this issue. From the looks of the first quote it seems this is in your plan anyway, though the latest update was almost half a year ago.
A possible quickfix might be to install all Google's fonts onto the App Service (they become system fonts, right?). I don't know how extensions work precisely, but it might be an idea to include the fonts through an extension.
This is still in our plans for our Windows App Service offering, we don’t have an ETA to share right now.
That’s said, you can use App Service on Linux, which allows you to run your apps on a Linux environment which should not have that sandbox limitation.
App Service Team
does it still not work?
This is very unfortunate issue, I also having same issue embed webfont not work when i convert HTML to PDF
is there any solution beacuse it is very common issue and issue is in my customer production
Looking forward for solutions
You may use Windows Containers in App Service to apply custom fonts:
Manas Agarwal commented
is there any update on this point?
"This is still in our plans for our Windows App Service offering, we don’t have an ETA to share right now.
That’s said, you can use App Service on Linux, which allows you to run your apps on a Linux environment which should not have that sandbox limitation."