-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font-awesome icons #11
Comments
Hi Benjamin, I tried different things, it's tricky. I hope I will be clear.
Then, in your
2.2. fa as png
It should work for both WeasyPrint and Prince on linux and windows. |
Hi Romain, Thanks for the detailed solutions: On linux with weasyprint, I didn't succeed with 2. and 3. The former inserted a placeholder for the image in the pdf doc but the image wasn't displayed. The latter wasn't able to find the image in my system, even after specifying explicitly a path (i.e. without The solution 1 works with me. I didn't try on windows but I will soon. You'll find some reprex here : https://github.com/BenjaminLouis/reprex-weasydoc/tree/master/issue%2311 |
Add icon with solution 1 from RLesur/weasydoc#11 : - work on linux with weasyprint (prince not tested) - work on windows with Prince but not with weasyprint
add icons with solution 2 from RLesur/weasydoc#11 : - works on windows with weasyprint
Do you think it could be possible to have access to font-awesome icons ?
By trying this 1) rstudio/rmarkdown#813 or this https://github.com/rstudio/fontawesome, I was able to add icons in the html document but they are absent in the pdf document with the weasyprint engine.
With Prince, only the 2) option works!
Maybe it's an issue for
HTML
toPDF
converters rather than an issue for your package...The text was updated successfully, but these errors were encountered: