Hey guys, sorry for not responding long time, finally I got some time to work on it. So the latest update is that I encounter with this issue in Lambda when I call jsreport core to render a PDF for me. so it works fine without custom fonts added in template as assets, but I doesn't work with this:
<style>{#asset ../shared/graphik-font.css @encoding=utf8}</style>
<style>{#asset ../shared/freightdisp-pro.css @encoding=utf8}</style>
though locally it works fine.
the fonts are located in shared folder and this is my font-face:
@font-face {
font-family: 'Graphik Web';
src: url({#asset fonts/Graphik-Regular-Web.woff2 @encoding=dataURI}) format('woff2'),
url({#asset fonts/Graphik-Regular-Web.woff @encoding=dataURI}) format('woff');
font-weight: 400;
font-style: normal;
font-stretch: normal;
}
.Graphik-Regular-Web {
font-family: 'Graphik Web';
font-weight: 400;
font-style: normal;
font-stretch: normal;
}