RC Release! EasySocial 3.2 RC is available now! Test it out today and share your feedback to us ✨

Legacy Documentation


91 Articles

Bookmarked Articles

No bookmarks yet
  1. Documentation
  2. Legacy Documentation
  3. Change Pdf Font Family

Change Pdf Font Family

Change pdf font family

You need to include font files for the font family, you want to use.

To make it possible, follow these steps:

  • Go to path https://github.com/dompdf/dompdf/releases and download dompdf0.6.
  • Extract it and go to path dompdf/lib/fonts.
  • Copy all the files of the font family, you want to use in Pdf Invoice .
  • For E.g.: To use Helvetica font-family, copy files : Helvetica.afm, Helvetica-Bold.afm, Helvetica-BoldOblique.afm and Helvetica-Oblique.afm
  • Paste it at path : root/plugins/payplans/pdfinvoice/pdfinvoice/dompdf0.6/lib/fonts
  • Now you can use this font family in Pdf Invoice by overriding the file.
  • Go to root/plugins/payplans/pdfinvoice/pdfinvoice/tmpl/pdf.css[br/]

Replace

font-family: "Times New Roman",Georgia, Serif; /*Trebuchet MS,*/ [br/]

With

font-family: "Helvetica",Georgia, Serif; /*Trebuchet MS,*/ 
This article is separated into multiple sections as follow: