This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Problem with web font

stvogdn wrote on 2015-02-20:
We are attempting to use a Japanese web font to render a PDF. When we include the font face css, the text on the document disappears. It seems as if the page is rendering before the (somewhat large) web font has loaded. Do you have any suggestions?

Thanks

Steve
support wrote on 2015-02-23:
Hello Steve,

Is there any way for us to reproduce the issue?
stvogdn wrote on 2015-02-23:
I think this sample shows it. If I upload this zip to the web site 'convert HTML to PDF' form is shows the missing font. If I just paste the html into the window it works. We are using the API and sending the html.
support wrote on 2015-02-25:
Hello,

The .zip file contains only one HTML file, it does not contain any font files. The HTML file refers to font files as follows, which will not work:
/sites/flukenetworks.com/modules/features/edoc/fonts/87e504e8-13c7-48ca-b9dd-ed5033f6a963.woff


You have to either zip the font file together with the HTML file and use a relative path:
fonts/87e504e8-13c7-48ca-b9dd-ed5033f6a963.woff


Or make the font file accessible on the public Internet and refer to it like this:
http://example.com/fonts/87e504e8-13c7-48ca-b9dd-ed5033f6a963.woff