TOPIC:

Perfect TrueType/Unicode Support in PDF Exports 6 years 5 months ago #180720

  • deserteagle's Avatar Topic Author
  • deserteagle
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • 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 6 years 5 months ago #180721

  • tomeperica's Avatar
  • tomeperica
  • Offline
  • User is blocked
  • User is blocked
  • Administrator
  • Posts: 6478
  • Thanks: 674
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.043 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!