net-core-html-to-image icon indicating copy to clipboard operation
net-core-html-to-image copied to clipboard

Fonts do not display correctly when deployed to Azure

Open kovitz opened this issue 6 years ago • 5 comments

I'm building a web app with .Net Core. The CoreHtmlToImage NuGet package seems to work fine when I'm running my web app locally in VS 2017. However, when I deploy my web app to Azure, the fonts do not get rendered correctly.

Do you know why your image generator behaves differently when running in Azure?

Thanks!

kovitz avatar Mar 05 '19 16:03 kovitz

@kovitz I'm not sure.. Do you mind posting 2 images, 1 generated locally and the other - from Azure? I'd like to compare side by side.

andrei-m-code avatar May 15 '19 02:05 andrei-m-code

I have the same problem. local db62b6b3-5271-47f4-a327-0fa5abbbb338 Azure 8de5ce27-f78b-4072-97d9-e0267879140c

lalaxyv avatar Nov 28 '19 00:11 lalaxyv

@andrei-m-code , @kovitz , I have using this library on our azure functions and its working fine on local but when we deploay to production its crashing with "The type initializer for 'CoreHtmlToImage.HtmlConverter' threw an exception.". Please help!

BlackZero1122 avatar Mar 11 '22 05:03 BlackZero1122

@andrei-m-code , @kovitz , I have using this library on our azure functions and its working fine on local but when we deploay to production its crashing with "The type initializer for 'CoreHtmlToImage.HtmlConverter' threw an exception.". Please help!

I also have this issue.

L96Github avatar Nov 14 '22 19:11 L96Github

Same issue here! If the required fonts are not installed in Azure Function or in Docker Container then it returns an image with default fonts instead of the selected.

VasilisPlavos avatar Jul 31 '23 18:07 VasilisPlavos