Skip to content
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

Fontawesome icons do not appear in PDF #402

Closed
fama opened this issue May 25, 2020 · 2 comments
Closed

Fontawesome icons do not appear in PDF #402

fama opened this issue May 25, 2020 · 2 comments

Comments

@fama
Copy link

fama commented May 25, 2020

Installed the Icons plugin:
https://www.dokuwiki.org/%3Aplugin%3Aicons
http://www.lotar.altervista.org/wiki/wiki/plugin/icons

The icons display correctly on the page, however they do not apper in the PDF.

I already modified the plugin»dw2pdf»usestyles and added fontawesome,fa, yet the icons do not print.

Can you please help.

@Klap-in
Copy link
Collaborator

Klap-in commented Feb 17, 2021

dw2pdf plugin uses mpdf library. Fonts that are not default included in mpdf has to be added to the mpdf by the user of mpdf. At the moment dw2pdf has not a feature to add this to mpdf.
With help of tutorials of mpdf you could add the fonts yourself in https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/blob/master/DokuPDF.class.php. Ensure to make an backup, as this file is typically overwritten on plugin update.
Including extended font support (which configurable by wiki admin) in dw2pdf needs probably more work.

@Klap-in
Copy link
Collaborator

Klap-in commented Oct 12, 2022

Example of configuration of fontawesome font: https://stackoverflow.com/a/58702825/1043588

Let's continue the discussion in #445.

@Klap-in Klap-in closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants