VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: kiro789 on November 17, 2015, 16:30:23 PM

Title: Cyrillic letters in Products PDF
Post by: kiro789 on November 17, 2015, 16:30:23 PM
Hello,
I try to configure how to get proper Cyrillic letters in PDF of a detailet product view.Now I see only question marks instead description.For exymple:
http://bit.ly/1NBjnoR
How can I make it proper.

Regards!
Title: Re: Cyrillic letters in Products PDF
Post by: GJC Web Design on November 17, 2015, 17:16:56 PM
think it is something to do with font libraries and has been discussed on here before
Title: Re: Cyrillic letters in Products PDF
Post by: kiro789 on November 18, 2015, 11:41:00 AM
Hello,
Ok, I fixed that (Joomla 3.4.5 and VM 3.0.12) :
Open /libraries/joomla/document/pdf/fonts.php and find the line where $pdf->SetFont is written (about line 221)
4. Replace the line with something like that $pdf->SetFont('freemono', '', 8, '', 'false');
5. Find "var $_header_font" and "var $_footer_font" (about lines 32 and 33) and replace the fonts there with freesans font:
   var $_header_font = 'freemono';
   var $_footer_font = 'freemono';

Maybe you should do that too:
Go to Shop -> Invoices tab
Then in Default font choose
Free Mono (UTF-8 Unicide)

Regards!
Title: Re: Cyrillic letters in Products PDF
Post by: Milbo on November 20, 2015, 00:31:53 AM
I just wanted to say, why hardcoding, when we coded an option for.