INR currency symbol on pdf using dompdf

天大地大妈咪最大 提交于 2019-12-04 19:02:31

The core PDF fonts (Helvetica, Times Roman, Courier) in dompdf only support characters that are included in Windows ANSI. Additionally, though dompdf 0.5.x can display other characters it requires much work to set up.

With dompdf 0.6.0 full Unicode character support is enabled so long as you have loaded a font that covers your character set. dompdf 0.6.0 (currently in beta) includes the DejaVu fonts, which do support ₹. Displaying that character requires only something like the following:

<span style="font-family: DejaVu Sans; sans-serif;">&#8377;</span>

For more details on configuring dompdf with Unicode support see the Unicode How-to on the dompdf wiki.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!