the first digit is cancelled and the currency symbol isn't showing. how can i resolve this issues
2 Answers
Please following below steps to solve the issue:-
Choose a font that supports your currency symbol.
Copy that supported font file (fontname.ttf) to
magento_root/lib/<project_name>/
directory.Copy both files
app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php
andapp/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
to
app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php
andapp/code/local/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
respectively.Open both newly created files and replace
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/LinLibertine_Re-4.4.1.ttf');
by
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/<project_name>/fontname.ttf');
Hope, if someone follow all these steps the problem should be solved.