News:

Looking for documentation? Take a look on our wiki

Main Menu

Cyrillic letters in Products PDF

Started by kiro789, November 17, 2015, 16:30:23 PM

Previous topic - Next topic

kiro789

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!

GJC Web Design

think it is something to do with font libraries and has been discussed on here before
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kiro789

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!

Milbo

I just wanted to say, why hardcoding, when we coded an option for.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/