Problem/Motivation
We have this module working nicely with a custom CSS stylesheet and we are able to theme are PDF creations!
One problem that we have though is that our fonts are not kicking in.
In our normal site theme we are using Google fonts to bring in the "Roboto
" and "Roboto Condensed
" and "Roboto Mono
" fonts using...
'https://fonts.googleapis.com/css?family=Roboto': { rel: true, type: external, minified: true }
'https://fonts.googleapis.com/css2?family=Roboto:wght@700': { rel: true, type: external, minified: true }
'https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700': { rel: true, type: external, minified: true }
In order to use the same in our print.css
which is being picked up nicely by the module and DOMPDF combo we have tried adding this to out print.css
stylesheet ...
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');
...but it does not seems to being picked up and our heading styles are falling back the sans serif.
Have we got this l wrong? Is it not that simple? can anyone help guide us in the right direction?
Thanks