Indian Rupee symbol(?)
未显示在发票pdf中magento
.在system-> manage currency-> symbols I save currency symbol
as ?
.
然后pdf看起来:
我将system-> manage currency-> symbols中的符号更改为 ₹
那么pdf看起来像这样:
如何?
在pdf
(发票,订单等)中正确显示Magento
.?
r4ven和rajatsaurastri的回答帮助我找到了解决方案.非常感谢你们..
不过我发布的答案让它运作良好..
1.下载支持印度卢比符号的字体.我下载dejavu-sans
字体.
2.将字体放在lib
目录中.
3.打开app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php和app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
并替换
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/LinLibertine_Re-4.4.1.ttf');
Run Code Online (Sandbox Code Playgroud)
同
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/dejavu-sans/DejaVuSans.ttf');
Run Code Online (Sandbox Code Playgroud)
(中_setFontRegular()
,_setFontBold()
,_setFontItalic()
功能在这两个文件.)
此链接提供有关更改字体的详细信息.