Hi I am trying to convert html to pdf everthing works fine but when try to use some custom font it is not working. Fonts are uploaded on docker container and using font urls in html-css like this:
* {
margin: 0;
padding: 0;
font-size: 97% !important;
box-sizing: border-box;
-webkit-box-sizing: border-box;
font-family: 'Times New Roman', Arial,sans-serif;
}
@font-face {
font-family: 'NeufileGrotesk';
src: url('NeufileGrotesk-Regular.ttf'),
url('NeufileGrotesk-SemiBold.ttf');
}
here is the font path on docker container:
Also followed this example:
https://support.syncfusion.com/kb/article/8701/how-to-use-external-fonts-for-html-to-pdf-conversion-in-linux-docker-container