Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

limeMpdf Plugin - Change Font

  • FredJackson
  • FredJackson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 2 days ago #269204 by FredJackson
limeMpdf Plugin - Change Font was created by FredJackson
Hi,

Need a little guidance on where to change the font that is used to create the PDF and if I am in the right place!

I want to change the current Sans Serif font to Arial, I have looked in "style-bootstrap.twig" but not sure if this is the only place to change.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 week 2 days ago #269214 by DenisChenu
Replied by DenisChenu on topic limeMpdf Plugin - Change Font
Do you ntry online style with
<span style="font-family:arial">arial</span>
<span style="font-family:serif">serif</span>

If it works you can force it in style-custom.css in your theme

Else :  mpdf.github.io/fonts-languages/default-font.html

 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • FredJackson
  • FredJackson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 2 days ago #269216 by FredJackson
Replied by FredJackson on topic limeMpdf Plugin - Change Font
I have tried this and not matter what it ALWAYS defaults to sans-serif.

I have also ensure that there are copies of the Arial TTF in the relevant fonts directory within limempdf.

Has anyone else been successful in changing the font?

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose