Use non typical fonts HTML to PDF

Hi Guys,

I’m triying to create PDF Output from html template with font-family: Lato-Semibold but i can’t import it.

i tried using

reporting.fontsDir = C:/Users/mrpgy/cubaProjects/pjt-bo/deploy/tomcat/webapps/app/VAADIN/themes/valo/fonts

and didnt work, too tried using

<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

and didnt work, too using

@font-face {
    font-family: Lato-Semibold;
    src: url(http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext);
}

i’m not sure about what to do for use non typical font HTML to PDF report.

How can i do that?.

Thanks in advance.

Your question is valid, and I also suffe this problem , would CUBA Support Team could kindly advise the workaround because the instructions from documentation is very not enough.