TOPIC:

Perfect TrueType/Unicode Support in PDF Exports 3 years 10 months ago #180720

  • deserteagle's Avatar Topic Author
  • deserteagle
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 63
  • Thanks: 1
Hi All

I found a solution to solve the Chinese font of PDF exports, I think it works for other unicode font (not test).

The solution is use a small (1.5M) and elegance droidsansfallback font in TCPdf to embed it.

1. upload font to administrator\components\com_breezingforms\libraries\tcpdf\fonts\
(because TCPdf does not support .ttf format, you need convert it by ttf2ufm.exe, I just converted it and upload in attachment, you can extract 3 files to the font folder)

2. search and replace the default "helvetica" with "droidsansfallback" in administrator\components\com_breezingforms\libraries\tcpdf\config\tcpdf_config.php

that's all.

Enjoy, this is the best solution I found, the export pdf with embed font is pretty small ( less than 1M) compare to use other fonts.

Eagle

File Attachment:

File Name: droidsansfallback.zip
File Size:1,569 KB
Everything is possible.
Attachments:
The following user(s) said Thank You: tomeperica

Please Log in or Create an account to join the conversation.

Perfect TrueType/Unicode Support in PDF Exports 3 years 10 months ago #180721

  • tomeperica's Avatar
  • tomeperica
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 6478
  • Karma: 170
  • Thanks: 667
Thank you for sharing your solution with community :)

Regards,
Tome
Regards,
Tome
==========================================
Need to renew Pro Support?
Buy Here!
==========================================
Satisfied?
Consider a membership!
==========================================
Like us on Facebook
==========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.047 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!