X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   ImageTTFText?? (https://forum.x-cart.com/showthread.php?t=37986)

collings26 03-02-2008 07:16 AM

ImageTTFText??
 
Hello,

I am wanting to change the font on my invoices to one ive found on the net and wondered about the use of ImageTTFText.

Has anyone done this before and how would it be done??

Regards
Chris

TelaFirma 03-02-2008 07:20 AM

Re: ImageTTFText??
 
If you are talking about using this to change the font of all the text on your invoices I would not advise it. This would take a lot of processing power and you would end up with an invoice that is nothing but a collection of images - not text at all, just images.


Quote:

Originally Posted by collings26
Hello,

I am wanting to change the font on my invoices to one ive found on the net and wondered about the use of ImageTTFText.

Has anyone done this before and how would it be done??

Regards
Chris


collings26 03-02-2008 07:22 AM

Re: ImageTTFText??
 
Hello,

Thanks for the quick reply, however, the only place where i'll need this is on a packing slip i have created that will display the customers message in a handwriting font. the rest of the page will be Verdana.

Im using intergrated labels and have it all set up except this font :)

Regards
Chris

TelaFirma 03-02-2008 07:28 AM

Re: ImageTTFText??
 
To do this, there would need to be a certain amount of custom code done in the PHP file that is generating the invoices. You would need to use the variable that holds the customer message and pass it to this function along with the full server path to the font. Then the resulting file would need to be written to the server somewhere and the path and filename of that file would need to be added to the customer information array and then passed to Smarty. Then, you could use that information (the written image location) to display the image in an IMG tag.

however since you are ONLY using this on a packing slip - just install the font on your system and then change the CSS for that on the packing slip to use that font. Since the font is on your PC, then when you show the invoice to print, it will use your installed font.


All times are GMT -8. The time now is 12:31 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.