TOPIC:

Better TrueType/Unicode Support in PDF Exports 6 years 8 months ago #126212

  • TheMuffinMan's Avatar Topic Author
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
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.
The following user(s) said Thank You: Peer1982

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

Last edit: Post by TheMuffinMan.

Better TrueType/Unicode Support in PDF Exports 6 years 8 months ago #126389

  • krogias
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Unfortunatelly the problem persists...
Attachments:

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

Better TrueType/Unicode Support in PDF Exports 6 years 8 months ago #126391

  • TheMuffinMan's Avatar Topic Author
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
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
Attachments:

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

Better TrueType/Unicode Support in PDF Exports 6 years 8 months ago #126449

  • krogias
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
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"?
Attachments:

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

Better TrueType/Unicode Support in PDF Exports 6 years 8 months ago #126460

  • TheMuffinMan's Avatar Topic Author
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
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

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

Better TrueType/Unicode Support in PDF Exports 6 years 8 months ago #126491

  • krogias
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Νο, 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.

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

Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

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!