1 (edited by p2409 09/06/2013 04:26:03 am)

Topic: Changing default font for documents in FA - instructions

Hi Guys

I wanted a narrower, modern font to my FA documents, in particular the invoices where I was running out of room.
I found a free font called 'Tuffy' which met the bill, and converted it to the required .php and .z formats using TCPDF. If you want to use it, to save you doing the converting, I've attached the 3 font files you need (although I think the .afm is optional).

If you do a search in this foum

To use this new font:

1) Put the 3 font files in ./reporting/fonts
tuffy.php, tuffy.z and tuffy.afm

2) Update the ./reporting/includes/class.pdf.inc file as follows:
Around line 119, change helvetica to tuffy so you end up with:

        // p2409 was helvetica, now tuffy.
        $this->FontFamily = 'tuffy';
        $this->FontStyle = '';
        $this->FontSizePt = 12;
Post's attachments

tuffy_example.png 42.9 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

2 (edited by apmuthu 09/06/2013 06:04:49 am)

Re: Changing default font for documents in FA - instructions

Where are the three font files?

More on Tuffy Font:
http://www.fontsquirrel.com/fonts/tuffy
http://www.dafont.com/tuffy.font
http://packages.debian.org/squeeze/ttf-tuffy

In Linux:

apt-get install ttf-tuffy
ln -s /usr/share/fonts/truetype/ttf-tuffy/* reporting/fonts

Re: Changing default font for documents in FA - instructions

In FA 2.4, the lines are 120-122 in reporting/includes/class.pdf.inc.