Better TrueType/Unicode Support in PDF Exports

  • TheMuffinMan
  • TheMuffinMan's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 7464
  • Karma: 150
  • Thank you received: 553

TheMuffinMan created the topic: Better TrueType/Unicode Support in PDF Exports

Hi,

since BreezingForms 1.8.5 build 860 there is better support for custom TTF files as well as unicode support.
There is no need any longer for hacking BreezingForms to include custom font files, but now you can add your own custom font files files by simple file uploading.

By default, BreezingForms now uses the Verdana font family based on TrueType and most important european and american character sets are covered. So if you don't need Chinese or a different font family than Verdana, then just use BreezingForms as it is and you are fine. If you want to change anything, then please follow the steps below:

1. Find and download a TTF font file that fits your need on the web (either the look of the font and/or the supported character sets).

Alternatively, you may download this font file from our server and use it instead.

The unifont file is from the Unifoundry project and tries to cover all important character sets in the world. Because of the size of that font file, we unfortunately can't add it to the BreezingForms installable package but as you'll see below, it's not a huge problem to add it later on.

In the instructions, we will use this unifont as example but it will work with any other TTF file you are using in the same way.

2. Make sure to give your font file a simple name, without special or uppercase characters. For example "unifont.ttf".

3. Open your FTP program and upload the font file into the "/media/breezingforms/pdftpl/fonts/" folder.

4. Create an empty file in the same directory and give it the name "unifont_active". Without file extension (important). This empty file is supposed to signal which font is currently active. It just needs to sit there, so BreezingForms knows which font file to pick. If your TTF font file would be for example "times.ttf", then the file would be called "times_active".

5. Make sure that the folder "/administrator/components/com_breezingforms/libraries/tcpdf/fonts/" is writable by your server. This is very important as the underlying TCPDF library needs to create necessary files out of the TTF and store it into that location. If that folder is not writable, it might lead to errors and empty PDF exports.

6. Now try to create your PDF exports and you should see the fonts and characters matching your uploaded TrueType font.

NOTE: with the free font "unifont.ttf" we noticed a glitch on MacOS / Chrome and displaying the PDF inline in Chrome (blank rows). Opening the exported PDF in the system viewer however, works.

===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#126212
The following user(s) said Thank You: Peer1982
  • Posts: 9
  • Thank you received: 0

krogias replied the topic: Better TrueType/Unicode Support in PDF Exports

Unfortunatelly the problem persists...
#126389
Attachments:
  • TheMuffinMan
  • TheMuffinMan's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 7464
  • Karma: 150
  • Thank you received: 553

TheMuffinMan replied the topic: Better TrueType/Unicode Support in PDF Exports

Hi,

that's not the exact same problem.

Please download and unzip the file attached. Then copy the 2 unzipped files into "/media/breezingforms/pdftpl/" and try again.

It can be that php's wordwrap function which is used in the templates has problems with unicode. I removed them in the templates attached. By this I want to make sure and then we got it covered. The update that you did was however not useless.

It would also be great if you could send me the entire record and copy it from the record manager to your next message, so I can test it against PHP's wordwrap.

Regards,
Markus

===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#126391
Attachments:
  • Posts: 9
  • Thank you received: 0

krogias replied the topic: Better TrueType/Unicode Support in PDF Exports

Well... everything is OK now!
Thanks for your help!
Just a small minor bug...
In "manage records", when I choose a form, the submitted fields are not displayed...
An a last think. How can I get rid of the "Payment methods"?
#126449
Attachments:
  • TheMuffinMan
  • TheMuffinMan's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 7464
  • Karma: 150
  • Thank you received: 553

TheMuffinMan replied the topic: Better TrueType/Unicode Support in PDF Exports

Hi,

that is strange. When you click into the details (right hand, the button), are they empty as well?
In any way, I might need temporary backend access to look what is happening there, please contact us here: support@crosstec.org

The payment methods will be shown anyway in the details but I can remove them for you while I am looking at the problem.

Regards,
Markus

===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#126460
  • Posts: 9
  • Thank you received: 0

krogias replied the topic: Better TrueType/Unicode Support in PDF Exports

Νο, in details they are populated fine. Just in the "preview".
Unfortunately the site is in localhost now and I cannot give you access.
I'll get buck to you when it will be live.
Thanks again.
#126491
Moderators: ForumSupporttomeperica
Time to create page: 0.073 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

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

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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 to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here