Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

ImageTTFText??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-02-2008, 07:16 AM
 
collings26 collings26 is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 149
 

Default 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
__________________
X-Cart v4.1.9 [unix]
Reply With Quote
  #2  
Old 03-02-2008, 07:20 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default 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
Reply With Quote
  #3  
Old 03-02-2008, 07:22 AM
 
collings26 collings26 is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 149
 

Default 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
__________________
X-Cart v4.1.9 [unix]
Reply With Quote
  #4  
Old 03-02-2008, 07:28 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default 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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:29 AM.

   

 
X-Cart forums © 2001-2020