Adding/Using another font in the e-Ticket

RD-Media is providing the default fonts for FPDF only but sometimes you may need some different fonts in your tickets. You can add every font you like, we are not adding these fonts because the package for installing will become to big. Here are the steps to follow:

  • Search on the internet for the font you like. And download the .ttf file from the website.
  • Go to: http://www.fpdf.org/makefont
  • Upload the .ttf file in the uploader and start downloading the .php file and .z file.
  • Then upload this font definitions to the next location:
    [website-root]/administrator/components/com_ticketmaster/assets/pdf/fpdf/font/

The font is now present at your server, so we can use it in the classes we need:

  • [website-root]/administrator/components/com_ticketmaster/classes/createtickets.class.php
  • [website-root]/administrator/components/com_ticketmaster/classes/confirmation.php
  • [website-root]/administrator/components/com_tcketmaster/classes/special.tickets.class.php

How to use it?

In our example we have uploaded the next files to our server:

  • Eunjin.php
  • Eunjin.z

Open one of the above files and you will this part of code everywhere:

 $pdf->AddPage();

The next text needs to be placed after this statement:

 $pdf->AddFont('Eunjin','', 'Eunjin.php');

Then you need to go throug the whole file and replace all font things in the file: (As you can see we have used Arial everywhere in the script:

 $pdf->SetFont('Arial', '', $order->ticket_fontsize);

Just replace Arial with 'Eunjin' (in this example) and you are done. (Please make an override of the createtickets.class.php file otherwise it will be overwritten in the next version again.

When using special characters like Russian, Thai or whatever then please make sure this ttf file has these characters in it. (https://code.google.com/p/pyfpdf/wiki/Unicode) && (http://www.fpdf.org/en/tutorial/tuto7.htm)  

Why Choose Us?

Latest Joomla! & PHP Versions!

We're always developing our components in the latest Joomla! and PHP environments! No need to be scared to run in troubles when your hosting company is updating their servers. We have probable tested it already ;)

100% Open Source

Our code is fully Open Source, so you can make changes to the code as much as you like! Making changes to the code? We can advise, but don't support your custom code. Using overides is the best thing to do!

Responsive Design

All extensions are as responsive as possible built on the shipped Joomla Bootstrap 2.x.x Library! We will soon make all our products compatible with Boostrap 3 to make sure it works on all Bootstrap versions.

Easy updating by the Joomla Updater

All components are being shipped with Joomla Update support, this means you don't have to upgrade manually anymore! The only thing you need to do is making sure you have entered a valid Download Key!

Quality Guaranteed

All our components are fully based on the Joomla API, this gives us flexibility so we can guarantee the quality of our products. When Joomla moves on, we're also moving on!

Service & Support

All our components are fully based on the Joomla API, this gives us flexibility so we can guarantee the quality of our products. When Joomla moves on, we're also moving on!