How to embed a font? What kind of font can be embeded in HTML2PDF?

You can embed a font with a simple CSS declaration. As the rendered pdf will be for print and this does not use any alternate fonts, one should declare only the desired font (in "").

Example:
font-family: "Cambria"; 
Please do not use: font-family: "Cambria", serif;

Please consider that only a font that is installed on our server can be rendered!

In our tests we got best results with following css declarations:
Serif: font-family: "Cambria";
Sans-serif: font-family: "Calibri";
Monospace: font-family: "Courier";

Do you need a special font? Please contact our support.

Buy your Version of html2pdf

HTML to PDF - Starter Package

  • 1000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

HTML to PDF - Standard Package

  • 5000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

HTML to PDF Professional Package

  • 10'000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

HTML to PDFEnterprise Package

  • 25'000 PDFConversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

Footer unten

Copyright © seven49.net
Source: http://www.html2pdf.solutions/en/FAQ/Frequently_Asked_Questions/How_to_embed_a_font_What_kind_of_font_can_be_emb.htm