php - How can I display `₹` properly in pdf in Magento.? -


indian rupee symbol(₹) not displaying in invoice pdf in magento. in system->manage currency->symbols save currency symbol .

then pdf looks:

enter image description here

i change symbol in system->manage currency->symbols ₹

then pdf looks this:

enter image description here

how can display in pdf(invoice,order etc) in magento.?

r4ven's , rajatsaurastri's answers helped me find solution. thank guys..

however post answer make working well..

1.download font support indian rupee symbol. download dejavu-sans font.

2.place font in lib directory.

3.open app/code/core/mage/sales/model/order/pdf/abstract.php , app/code/core/mage/sales/model/order/pdf/items/abstract.php

and replace

$font = zend_pdf_font::fontwithpath(mage::getbasedir() . '/lib/linlibertinefont/linlibertine_re-4.4.1.ttf'); 

with

$font = zend_pdf_font::fontwithpath(mage::getbasedir() . '/lib/dejavu-sans/dejavusans.ttf'); 

(in _setfontregular(), _setfontbold(), _setfontitalic() functions in both files.)

this link gives more info changing font.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -