Custom fonts not working in wkhtmltopdf 0.12.2.1 (with patched qt)? #3278

Open
nageshnallapu opened this Issue Jan 10, 2017 · 3 comments

Projects

None yet

2 participants

@nageshnallapu
nageshnallapu commented Jan 10, 2017 edited

I am using Proxima_nova regular and bold fonts ,for html these fonts are working fine.But when it comes to the pdf generation the fonts are appearing different.

  • How to resolve this issue?

  • Whether this wkhtmltopdf 0.12.2.1 supports custom fonts or not?
    below is the sample code I used in css
    <style> @font-face { font-family: "proxima_nova_rgbold"; src: url(data:font/woff;base64,d09GRgABAAAAA ...==) format("WebOpenFont"), url(data:font/ttf;base64,AAEAAAATAQAAB...==format("truetype"); font-weight: normal; font-style: normal; }
    I am working on Linux 3.13.0-62-generic x86_64 version and running the exec command in php.

@MitchellBouwman

Hi @nageshnallapu, you can place @import in your CSS file and include it. ;)

@nageshnallapu

Thanks @MitchellBouwman ,I got it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment